Add CMakeLists.txt for builder pattern.

master
fengqiangguo 2023-08-09 23:04:52 +08:00
parent 00c235a128
commit fe85d94f49
2 changed files with 9 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(app4 ${SRC_LIST})

View File

@ -7,4 +7,5 @@ message(STATUS "output dir : ${OUTPUT_DIR}")
add_subdirectory(01.SimpleFactory/2.Code/)
add_subdirectory(02.FactoryMethod/2.Code/)
add_subdirectory(03.AbstractFactory/2.Code/)
add_subdirectory(04.BuilderPattern/2.Code/)
add_subdirectory(17.IteratorPattern/2.Code/)