Add CMakeLists.txt at root dir.

master
fengqiangguo 2023-08-06 16:38:09 +08:00
parent c6ca8bdba8
commit 74a44fd073
3 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(SimpleFactory)
set(SRC_LIST main.cpp)
add_executable(app ${SRC_LIST})
add_executable(app1 ${SRC_LIST})
set(EXECUTABLE_OUTPUT_PATH ${OUTPUT_PATH}/bin/)

View File

@ -1,3 +1,4 @@
cmake_minimum_required(VERSION 3.10)
project(Example)
add_executable(app main.cpp)
project(FactoryMethod)
add_executable(app2 main.cpp)
set(EXECUTABLE_OUTPUT_PATH ${OUTPUT_PATH}/bin/)

7
CMakeLists.txt Normal file
View File

@ -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/)