File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88# Contact KDAB at <info@kdab.com> for commercial licensing options.
99#
1010
11+ if (KDUTILS_CODE_COVERAGE)
12+ include (${PROJECT_SOURCE_DIR } /cmake/CodeCoverage.cmake )
13+ setup_target_for_coverage_gcovr_html (
14+ NAME
15+ KDUtils_coverage
16+ EXECUTABLE
17+ ctest
18+ -L
19+ "KDUtils"
20+ EXCLUDE
21+ "${CMAKE_BINARY_DIR } /_deps/*"
22+ "${CMAKE_BINARY_DIR } /src/*"
23+ )
24+ endif ()
25+
1126project (KDUtils-Tests)
1227
1328# Create a test executable linking to the KDUtils library
@@ -36,18 +51,3 @@ add_subdirectory(uri)
3651add_subdirectory (url )
3752
3853add_feature_info (KDUtils-Test ON "Build KDUtils Tests" )
39-
40- if (KDUTILS_CODE_COVERAGE)
41- include (${PROJECT_SOURCE_DIR } /cmake/CodeCoverage.cmake )
42- setup_target_for_coverage_gcovr_html (
43- NAME
44- KDUtils_coverage
45- EXECUTABLE
46- ctest
47- -L
48- "KDUtils"
49- EXCLUDE
50- "${CMAKE_BINARY_DIR } /_deps/*"
51- "${CMAKE_BINARY_DIR } /src/*"
52- )
53- endif ()
You can’t perform that action at this time.
0 commit comments