1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 21:51:12 +02:00

cmakelint cmake files

NOTE: still warnings about CamelCases!
This commit is contained in:
ClausKlein 2021-02-05 14:23:09 +01:00
parent cd175563a3
commit 2ef6e12daa

View file

@ -44,8 +44,7 @@ CPMAddPackage(
file(GLOB sources CONFIGURE_DEPENDS source/*.cpp)
add_executable(GreeterTests ${sources})
target_link_libraries(GreeterTests doctest::doctest Greeter::Greeter)
set_target_properties(GreeterTests PROPERTIES CXX_STANDARD 17)
target_compile_features(GreeterTests PUBLIC cxx_std_17)
# enable compiler warnings
if(NOT TEST_INSTALLED_VERSION)
@ -66,7 +65,7 @@ enable_testing()
# doctest_discover_tests(GreeterTests)
# For other testing frameworks add the tests target instead:
ADD_TEST(GreeterTests GreeterTests)
add_test(NAME GreeterTests COMMAND GreeterTests --success=false)
# ---- code coverage ----