Add CMakeLists.txt part 4.

master
fengqiangguo 2023-08-24 21:59:41 +08:00
parent ff12528173
commit 00569378c4
6 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.15)
project(BuilderPattern)
set(SRC_LIST main.cpp)
get_filename_component(FOLDER_NAME ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORY)
get_filename_component(FOLDER_NAME ${FOLDER_NAME} NAME)
set(EXECUTABLE_OUTPUT_PATH ${OUTPUT_DIR}/${FOLDER_NAME})
add_executable(app9 ${SRC_LIST})

View File

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.15)
project(BuilderPattern)
set(SRC_LIST main.cpp)
get_filename_component(FOLDER_NAME ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORY)
get_filename_component(FOLDER_NAME ${FOLDER_NAME} NAME)
set(EXECUTABLE_OUTPUT_PATH ${OUTPUT_DIR}/${FOLDER_NAME})
add_executable(app10 ${SRC_LIST})

View File

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.15)
project(BuilderPattern)
set(SRC_LIST main.cpp)
get_filename_component(FOLDER_NAME ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORY)
get_filename_component(FOLDER_NAME ${FOLDER_NAME} NAME)
set(EXECUTABLE_OUTPUT_PATH ${OUTPUT_DIR}/${FOLDER_NAME})
add_executable(app11 ${SRC_LIST})

View File

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.15)
project(BuilderPattern)
set(SRC_LIST main.cpp)
get_filename_component(FOLDER_NAME ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORY)
get_filename_component(FOLDER_NAME ${FOLDER_NAME} NAME)
set(EXECUTABLE_OUTPUT_PATH ${OUTPUT_DIR}/${FOLDER_NAME})
add_executable(app12 ${SRC_LIST})

View File

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.15)
project(BuilderPattern)
set(SRC_LIST main.cpp)
get_filename_component(FOLDER_NAME ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORY)
get_filename_component(FOLDER_NAME ${FOLDER_NAME} NAME)
set(EXECUTABLE_OUTPUT_PATH ${OUTPUT_DIR}/${FOLDER_NAME})
add_executable(app13 ${SRC_LIST})

View File

@ -12,4 +12,9 @@ add_subdirectory(05.PrototypePattern/2.Code/)
add_subdirectory(06.Singleton/2.Code/)
add_subdirectory(07.AdapterPattern/2.Code/)
add_subdirectory(08.BridgePattern/2.Code/)
add_subdirectory(09.CompositePattern/2.Code/)
add_subdirectory(10.DecoratorPattern/2.Code/)
add_subdirectory(11.FacadePattern/2.Code/)
add_subdirectory(12.FlyweightPattern/2.Code/)
add_subdirectory(13.ProxyPattern/2.Code/)
add_subdirectory(17.IteratorPattern/2.Code/)