From 3f0342ba7d9a15b45a33d839256c5a9574183126 Mon Sep 17 00:00:00 2001 From: Florent Hivert Date: Mon, 6 Nov 2023 10:22:21 +0000 Subject: [PATCH] Fixed converage CMakeLists --- tests/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b15aaea6..c8ed2865 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -40,6 +40,9 @@ foreach(f ${test_src}) add_executable (${testName} ${f} test_main.cpp) append_coverage_compiler_flags_to_target(${testName}) target_link_libraries(${testName} PRIVATE Catch2::Catch2WithMain gcov) + setup_target_for_coverage_lcov( + NAME coverage-${testName} + EXECUTABLE ${testName}) endforeach(f) add_executable(test_all ${test_src} test_main.cpp)