Get the basic file framework up

This commit is contained in:
Patricia Aas 2020-11-23 19:59:11 +01:00
parent c80fcdc2c7
commit 8062861808
8 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1 @@
add_executable(01_main main.cpp)

4
01_foundation/main.cpp Normal file
View file

@ -0,0 +1,4 @@
#include <iostream>
int main() {
std::cout << "Hello World\n";
}

View file

@ -0,0 +1 @@
add_executable(02_main main.cpp)

4
02_foundation/main.cpp Normal file
View file

@ -0,0 +1,4 @@
#include <iostream>
int main() {
std::cout << "Hello World\n";
}

View file

@ -0,0 +1 @@
add_executable(11_main main.cpp)

4
11_intermediate/main.cpp Normal file
View file

@ -0,0 +1,4 @@
#include <iostream>
int main() {
std::cout << "Hello World\n";
}

16
CMakeLists.txt Normal file
View 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)

View file

@ -0,0 +1,2 @@
SET(CMAKE_C_COMPILER clang-11)
SET(CMAKE_CXX_COMPILER clang++-11)