C_CPP/CMakeLists.txt

42 lines
1.7 KiB
CMake

cmake_minimum_required(VERSION 3.3)
project(C/C++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
SET(CMAKE_BUILD_TYPE Debug)
# These are the corresponding output paths
set (EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin)
set (LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH})
add_executable(01_ENV_MP 01_ENV/MP/main.c 01_ENV/MP/func1.c)
target_link_libraries(01_ENV_MP m)
add_executable(01_ENV_Testat 01_ENV/Testat/main.c 01_ENV/Testat/func1.c)
add_executable(02_MENT_MP 02_MENT/MP/main_02_MENT.cpp)
add_executable(02_MENT_Testat 02_MENT/Testat/main_02_MENT.cpp)
add_executable(03_FLOW_MP 03_FLOW/MP/main_mp2_FLOW_a.cpp helpers/AnsiConsole.cpp)
add_executable(03_FLOW_Testat 03_FLOW/Testat/main_mp2_FLOW_a.cpp helpers/AnsiConsole.cpp)
add_executable(04_UDEF_MP 04_UDEF/MP/main_04_UDEF_e.cpp)
add_executable(04_UDEF_Testat 04_UDEF/Testat/Testat.cpp)
add_executable(05_OO_MP 05_OO/MP/shapes_main.cpp helpers/AnsiConsole.cpp)
add_executable(05_OO_Testat 05_OO/Testat/shapes_main.cpp helpers/AnsiConsole.cpp)
add_executable(06_POLY_MP 06_POLY/MP/shapes_main.cpp helpers/AnsiConsole.cpp)
add_executable(06_POLY_Testat 06_POLY/Testat/shapes_main.cpp helpers/AnsiConsole.cpp)
add_executable(07_STD_MP 07_STD/MP/grundgeruest.cpp)
add_executable(07_STD_Testat 07_STD/Testat/grundgeruest.cpp)
#add_executable(SequenceDiagram 11_PUTT/05_OO_b/SequenceDiagramCreator.cpp 11_PUTT/05_OO_b/main.cpp)
#add_executable(LCDDisplay 11_PUTT/02_Ment/LCDDisplay.cpp)
#add_executable(CopyOnWrite 11_PUTT/CopyOnWrite/OneByOneMatrix.cpp 11_PUTT/CopyOnWrite/LargeCowMatrix.cpp 11_PUTT/CopyOnWrite/main.cpp)
#add_executable(Banking 10_PITF/MP/banking_base_rawptr.cpp)
add_executable(Test 11_PUTT/Test.cpp)