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:
parent
cd175563a3
commit
2ef6e12daa
1 changed files with 2 additions and 3 deletions
|
@ -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 ----
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue