From 83d0e6e7cc345d20b401f82ad0c478ffa60e5c5a Mon Sep 17 00:00:00 2001 From: Lars Melchior Date: Mon, 13 Apr 2020 18:16:16 +0200 Subject: [PATCH] track coverage in the actual project --- test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 6838995..b6f8111 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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()