You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
526 B

5 years ago
set(CMAKE_BUILD_TYPE Debug)
5 years ago
include(cmake/3rdparty/CodeCoverage.cmake)
5 years ago
append_coverage_compiler_flags()
set(COVERAGE_EXCLUDES
'${CMAKE_SOURCE_DIR}/test/*'
5 years ago
'${CMAKE_SOURCE_DIR}/build/*'
'${CMAKE_SOURCE_DIR}/cmake-build-debug/*'
5 years ago
)
get_property(tests GLOBAL PROPERTY TEST_TARGETS)
5 years ago
setup_target_for_coverage_gcovr_xml(
5 years ago
NAME ctest_coverage
DEPENDENCIES ${tests}
5 years ago
EXECUTABLE ctest
)
setup_target_for_coverage_gcovr_html(
5 years ago
NAME ctest_coverage_html
DEPENDENCIES ${tests}
5 years ago
EXECUTABLE ctest
)