From f736759c63593623d2f01e1c736330917de46ec9 Mon Sep 17 00:00:00 2001 From: Pascal Palenda <pascal.palenda@akustik.rwth-aachen.de> Date: Thu, 16 Feb 2023 15:22:33 +0100 Subject: [PATCH] Improve the code coverage reporting --- src/IhtaAddTest.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/IhtaAddTest.cmake b/src/IhtaAddTest.cmake index c86b5ad..eb3d4e6 100644 --- a/src/IhtaAddTest.cmake +++ b/src/IhtaAddTest.cmake @@ -117,6 +117,10 @@ macro (ihta_add_test) ) endif () + # Set these variables here as well since, it doesn't seems to propagate correctly. + set (CPP_COVERAGE_ENABLE_COV_COMMANDS ON) + set (CPP_COVERAGE_ENABLE_PER_TARGET_COVERAGE_REPORTS ON) + cpp_coverage_add_test ( TARGET ${IHTA_ADD_TEST_NAME} -- GitLab