2018-06-02 10:50:37 +02:00
|
|
|
cmake_minimum_required(VERSION 3.3)
|
|
|
|
project(test_build)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
|
|
|
|
|
|
|
|
set(UDEF_1 UserDefinedTypes1)
|
|
|
|
set(UDEF_1_SOURCE 04_UDEF/main_04_UDEF_e.cpp)
|
|
|
|
add_executable(${UDEF_1} ${UDEF_1_SOURCE})
|
|
|
|
|
|
|
|
set(UDEF_2 UserDefinedTypes2)
|
|
|
|
set(UDEF_2_SOURCE 04_UDEF/main_04_UDEF_a.cpp)
|
|
|
|
add_executable(${UDEF_2} ${UDEF_2_SOURCE})
|
|
|
|
|
|
|
|
set(UDEF_TESTAT UserDefinedTypesTestat)
|
|
|
|
set(UDEF_TESTAT_SOURCE 04_UDEF/Testat/Testat.cpp)
|
2018-06-08 16:52:00 +02:00
|
|
|
add_executable(${UDEF_TESTAT} ${UDEF_TESTAT_SOURCE})
|
|
|
|
|
2018-06-14 16:22:51 +02:00
|
|
|
set(05_SHAPES 05_Shapes)
|
|
|
|
set(05_SHAPES_SOURCE 05_OO/shapes_main.cpp)
|
|
|
|
add_executable(${05_SHAPES} helpers/AnsiConsole.cpp ${05_SHAPES_SOURCE})
|
|
|
|
|
|
|
|
|
2018-06-08 16:52:00 +02:00
|
|
|
set(SEQUENCE_DIAGRAM SequenzDiagram)
|
|
|
|
set(SEQUENCE_DIAGRAM_SOURCE 11_PUTT/05_OO_b/main.cpp)
|
|
|
|
add_executable(${SEQUENCE_DIAGRAM} 11_PUTT/05_OO_b/SequenceDiagramCreator.cpp ${SEQUENCE_DIAGRAM_SOURCE})
|
|
|
|
|
|
|
|
set(LCDDISPLAY LCDDisplay)
|
|
|
|
set(LCDDISPLAY_SOURCE 11_PUTT/02_Ment/LCDDisplay.cpp)
|
2018-06-14 16:22:51 +02:00
|
|
|
add_executable(${LCDDISPLAY} ${LCDDISPLAY_SOURCE})
|
|
|
|
|
|
|
|
set(COPY_ON_WRITE CopyOnWrite)
|
|
|
|
set(COPY_ON_WRITE_SOURCE 11_PUTT/CopyOnWrite/main.cpp)
|
|
|
|
add_executable(${COPY_ON_WRITE} 11_PUTT/CopyOnWrite/OneByOneMatrix.cpp 11_PUTT/CopyOnWrite/LargeCowMatrix.cpp ${COPY_ON_WRITE_SOURCE})
|