Add CMakeLists.txt at root dir.
parent
c6ca8bdba8
commit
74a44fd073
|
@ -1,4 +1,5 @@
|
||||||
cmake_minimum_required(VERSION 3.10)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
project(SimpleFactory)
|
project(SimpleFactory)
|
||||||
set(SRC_LIST main.cpp)
|
set(SRC_LIST main.cpp)
|
||||||
add_executable(app ${SRC_LIST})
|
add_executable(app1 ${SRC_LIST})
|
||||||
|
set(EXECUTABLE_OUTPUT_PATH ${OUTPUT_PATH}/bin/)
|
|
@ -1,3 +1,4 @@
|
||||||
cmake_minimum_required(VERSION 3.10)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
project(Example)
|
project(FactoryMethod)
|
||||||
add_executable(app main.cpp)
|
add_executable(app2 main.cpp)
|
||||||
|
set(EXECUTABLE_OUTPUT_PATH ${OUTPUT_PATH}/bin/)
|
|
@ -0,0 +1,7 @@
|
||||||
|
cmake_minimum_required(VERSION 3.15)
|
||||||
|
project(cplusplus_design_pattern)
|
||||||
|
|
||||||
|
set(OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
|
add_subdirectory(01.SimpleFactory/2.Code/)
|
||||||
|
add_subdirectory(02.FactoryMethod/2.Code/)
|
Loading…
Reference in New Issue