Skip to content
Snippets Groups Projects
Commit d8dc4960 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Add coverage reporting per target

parent f97781c7
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ macro (ihta_add_test)
NAME cpp_coverage
GITHUB_REPOSITORY ekcoh/cpp-coverage
GIT_TAG master
OPTIONS "CPP_COVERAGE_ENABLE_COV_COMMANDS ON"
OPTIONS "CPP_COVERAGE_ENABLE_COV_COMMANDS ON" "CPP_COVERAGE_ENABLE_PER_TARGET_COVERAGE_REPORTS ON"
)
# TODO set output types with quotes -> does not work :(
......@@ -126,10 +126,12 @@ macro (ihta_add_test)
"*out*"
"*build*"
REPORT_FOR_GLOBAL
REPORT_FOR_TARGET
)
set_property (TARGET coverage_report PROPERTY FOLDER "coverage")
set_property (TARGET ${IHTA_ADD_TEST_NAME}_coverage PROPERTY FOLDER "coverage")
set_property (TARGET ${IHTA_ADD_TEST_NAME}_coverage_report PROPERTY FOLDER "coverage")
else ()
# use [namespace].[class].[testname] naming
add_test (NAME "${IHTA_ADD_TEST_NAME}.Global.Global" COMMAND ${IHTA_ADD_TEST_NAME}) # todo fix namespace name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment