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:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user