1
0
Fork 0
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:
Lars Melchior 2020-04-13 18:16:16 +02:00
parent c2943ec551
commit 83d0e6e7cc

View file

@ -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()