3 Star 0 Fork 1

mirrors_JakubVojvoda/design-patterns-cpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 885 Bytes
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 3.5)
project(CppDesignPatterns)
set(PATTERNS
abstract-factory
adapter
bridge
builder
chain-of-responsibility
command
composite
decorator
facade
factory-method
flyweight
interpreter
iterator
mediator
memento
observer
prototype
proxy
singleton
state
strategy
template-method
visitor
)
foreach(_dir IN ITEMS ${PATTERNS})
file(GLOB _files "${_dir}/*.cpp")
message(STATUS "Pattern `${_dir}':")
foreach(_file IN ITEMS ${_files})
get_filename_component(_file_name
${_file} NAME
)
set(_project_name "${_file_name}")
message(STATUS " ${_dir}/${_file_name} is going to be built")
add_executable(${_project_name} "${_dir}/${_file_name}")
endforeach()
endforeach()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_JakubVojvoda/design-patterns-cpp.git
git@gitee.com:mirrors_JakubVojvoda/design-patterns-cpp.git
mirrors_JakubVojvoda
design-patterns-cpp
design-patterns-cpp
master

搜索帮助