mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-30 21:51:12 +02:00
track coverage in the actual project
This commit is contained in:
parent
c2943ec551
commit
83d0e6e7cc
1 changed files with 2 additions and 2 deletions
|
@ -55,6 +55,6 @@ ADD_TEST(GreeterTests GreeterTests)
|
|||
# ---- code coverage ----
|
||||
|
||||
if (${ENABLE_TEST_COVERAGE})
|
||||
set_target_properties(GreeterTests PROPERTIES CXX_STANDARD 17 COMPILE_FLAGS "-O0 -g -fprofile-arcs -ftest-coverage --coverage")
|
||||
target_link_options(GreeterTests PUBLIC "--coverage")
|
||||
set_target_properties(Greeter PROPERTIES CXX_STANDARD 17 COMPILE_FLAGS "-O0 -g -fprofile-arcs -ftest-coverage --coverage")
|
||||
target_link_options(Greeter PUBLIC "--coverage")
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue