1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-31 22:21:13 +02:00

add cmake tools option to easy dynamic setup

This commit is contained in:
ClausKlein 2022-03-30 06:32:14 +02:00
parent 2cf15bc347
commit aa02116995
3 changed files with 14 additions and 2 deletions

View file

@ -24,7 +24,10 @@ file(GLOB sources CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/source/*.cpp)
add_executable(${PROJECT_NAME} ${sources})
# TODO(CK): why is this needed?
# enable pedantic compiler warnings
include(../cmake/WarningsAsErrors.cmake)
# TODO(CK): why is this needed on CI?
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME Greeter)
target_link_libraries(${PROJECT_NAME} Greeter::Greeter cxxopts)