Skip to content

Commit

Permalink
Using test_all for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hivert committed Nov 8, 2023
1 parent 3f0342b commit a3d06f7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ set(test_src
foreach(f ${test_src})
get_filename_component(testName ${f} NAME_WE)
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})
target_link_libraries(${testName} PRIVATE Catch2::Catch2WithMain)
endforeach(f)

add_executable(test_all ${test_src} test_main.cpp)
target_link_libraries(test_all PRIVATE Catch2::Catch2WithMain)
append_coverage_compiler_flags_to_target(test_all)
target_link_libraries(test_all PRIVATE Catch2::Catch2WithMain gcov)
setup_target_for_coverage_lcov(
NAME coverage-test_all
EXECUTABLE test_all)

add_test (TestEPU8 test_epu8)
add_test (TestPerm16 test_perm16)
Expand Down

0 comments on commit a3d06f7

Please sign in to comment.