-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (27 loc) · 971 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cmake_minimum_required(VERSION 3.10)
project(design_pattern)
set(CMAKE_BUILD_TYPE Release)
add_subdirectory(01-creational)
add_subdirectory(02-structural)
add_subdirectory(03-behavioral)
include_directories("src/**/**.h")
# 01-simple_factory
add_executable(simple_factory ./src/01_simple_factory/operation.cpp)
# 02-strategy
add_executable(strategy ./src/02_strategy/cash_compute.cpp)
# 03-decorator
add_executable(decorator ./src/03_decorator/finery.cpp)
# 04-proxy
add_executable(proxy ./src/04_proxy/pursuit.cpp)
# 05-factory_method
add_executable(factory_method ./src/05_factory_method/leifeng.cpp)
# 06-prototype
add_executable(prototype ./src/06_prototype/resume.cpp)
# 07-template_method
add_executable(template_method ./src/07_template_method/test_paper.cpp)
# 08-facade
add_executable(facade ./src/08_facade/fund.cpp)
# 09-facade
add_executable(builder ./src/09_builder/person.cpp)
# target_link_libraries(main ${OpenCV_LIBS})
# cmake -G "MinGW Makefiles" ..