Get the basic file framework up
This commit is contained in:
parent
c80fcdc2c7
commit
8062861808
8 changed files with 33 additions and 0 deletions
1
01_foundation/CMakeLists.txt
Normal file
1
01_foundation/CMakeLists.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
add_executable(01_main main.cpp)
|
4
01_foundation/main.cpp
Normal file
4
01_foundation/main.cpp
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#include <iostream>
|
||||||
|
int main() {
|
||||||
|
std::cout << "Hello World\n";
|
||||||
|
}
|
1
02_foundation/CMakeLists.txt
Normal file
1
02_foundation/CMakeLists.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
add_executable(02_main main.cpp)
|
4
02_foundation/main.cpp
Normal file
4
02_foundation/main.cpp
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#include <iostream>
|
||||||
|
int main() {
|
||||||
|
std::cout << "Hello World\n";
|
||||||
|
}
|
1
11_intermediate/CMakeLists.txt
Normal file
1
11_intermediate/CMakeLists.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
add_executable(11_main main.cpp)
|
4
11_intermediate/main.cpp
Normal file
4
11_intermediate/main.cpp
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#include <iostream>
|
||||||
|
int main() {
|
||||||
|
std::cout << "Hello World\n";
|
||||||
|
}
|
16
CMakeLists.txt
Normal file
16
CMakeLists.txt
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
if (NOT APPLE AND NOT WIN32)
|
||||||
|
set(CMAKE_TOOLCHAIN_FILE toolchains/linux_clang_11.cmake)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
cmake_minimum_required(VERSION 3.10)
|
||||||
|
project(modern_cpp C CXX)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
set(CMAKE_CXX_EXTENSIONS NO)
|
||||||
|
|
||||||
|
include_directories(include)
|
||||||
|
|
||||||
|
add_subdirectory(01_foundation)
|
||||||
|
add_subdirectory(02_foundation)
|
||||||
|
add_subdirectory(11_intermediate)
|
2
toolchains/linux_clang_11.cmake
Normal file
2
toolchains/linux_clang_11.cmake
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
SET(CMAKE_C_COMPILER clang-11)
|
||||||
|
SET(CMAKE_CXX_COMPILER clang++-11)
|
Loading…
Reference in a new issue