Clean up CMakeLists in all C++ examples

+ Rename output executables to match directory structure
+ Remove libraries for small examples
+ Supress -Wreturn-type warnings for singleton that is intentionally not copyable
This commit is contained in:
2022-03-31 16:01:08 -04:00
parent 573fc4e1e8
commit a97dfbe34b
98 changed files with 695 additions and 598 deletions

View File

@@ -15,7 +15,8 @@ project(
)
add_compile_options("-Wall")
add_library(abstract-parts "parts.cpp")
add_library(abstract-factory "factory.cpp")
add_executable(abstract-factory-test "main.cpp")
target_link_libraries(abstract-factory-test abstract-factory abstract-parts)
add_executable(
patterns-abstract-factory main.cpp
parts.cpp parts.hpp
abstract-factory.cpp abstract-factory.hpp
)