2022-03-31 20:01:08 +00:00
|
|
|
################################################################################
|
|
|
|
## Author: Shaun Reed ##
|
|
|
|
## Legal: All Content (c) 2022 Shaun Reed, all rights reserved ##
|
|
|
|
## About: A project for practicing C++ design patterns ##
|
|
|
|
## ##
|
|
|
|
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
|
|
|
|
################################################################################
|
|
|
|
|
2021-05-11 15:55:21 +00:00
|
|
|
cmake_minimum_required(VERSION 3.15)
|
|
|
|
|
|
|
|
project(
|
|
|
|
#[[NAME]] DesignPatterns
|
|
|
|
VERSION 1.0
|
|
|
|
DESCRIPTION "A project for practicing various design patterns in C++"
|
|
|
|
LANGUAGES CXX
|
|
|
|
)
|
|
|
|
|
2022-01-07 16:26:00 +00:00
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|
|
|
|
2021-05-11 15:55:21 +00:00
|
|
|
add_subdirectory(singleton)
|
2021-05-11 20:57:21 +00:00
|
|
|
add_subdirectory(adapter)
|
|
|
|
add_subdirectory(bridge)
|
|
|
|
add_subdirectory(factory)
|
2021-05-11 21:39:36 +00:00
|
|
|
add_subdirectory(prototype)
|
2021-05-11 20:57:21 +00:00
|
|
|
add_subdirectory(abstract-factory)
|
2021-05-11 22:53:16 +00:00
|
|
|
add_subdirectory(state)
|
2021-05-11 23:58:23 +00:00
|
|
|
add_subdirectory(observer)
|
2021-05-12 00:56:05 +00:00
|
|
|
add_subdirectory(visitor)
|