mirror of https://github.com/libp2p/cpp-libp2p.git
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.
25 lines
526 B
25 lines
526 B
set(CMAKE_BUILD_TYPE Debug)
|
|
|
|
include(cmake/3rdparty/CodeCoverage.cmake)
|
|
|
|
append_coverage_compiler_flags()
|
|
|
|
set(COVERAGE_EXCLUDES
|
|
'${CMAKE_SOURCE_DIR}/test/*'
|
|
'${CMAKE_SOURCE_DIR}/build/*'
|
|
'${CMAKE_SOURCE_DIR}/cmake-build-debug/*'
|
|
)
|
|
|
|
get_property(tests GLOBAL PROPERTY TEST_TARGETS)
|
|
|
|
setup_target_for_coverage_gcovr_xml(
|
|
NAME ctest_coverage
|
|
DEPENDENCIES ${tests}
|
|
EXECUTABLE ctest
|
|
)
|
|
|
|
setup_target_for_coverage_gcovr_html(
|
|
NAME ctest_coverage_html
|
|
DEPENDENCIES ${tests}
|
|
EXECUTABLE ctest
|
|
)
|
|
|