Add CMakeLists.txt for prototype pattern.
parent
fe85d94f49
commit
d86360b4d8
|
@ -0,0 +1,11 @@
|
|||
cmake_minimum_required(VERSION 3.15)
|
||||
project(Prototype)
|
||||
|
||||
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})
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
|
||||
file(GLOB SRC_LIST ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
add_executable(app5 ${SRC_LIST})
|
|
@ -8,4 +8,5 @@ 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(05.PrototypePattern/2.Code/)
|
||||
add_subdirectory(17.IteratorPattern/2.Code/)
|
||||
|
|
Loading…
Reference in New Issue