File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 11if (ENABLE_COVERAGE)
22 find_program (GCOVR_EXE gcovr REQUIRED)
3- set (COVERAGE_OUTPUT_DIR "${CMAKE_BINARY_DIR} /coverage-report " )
3+ set (COVERAGE_OUTPUT_DIR "${CMAKE_BINARY_DIR} " )
44
55 add_custom_target (coverage
66 COMMAND ${CMAKE_COMMAND} -E make_directory ${COVERAGE_OUTPUT_DIR}
77 COMMAND ${GCOVR_EXE}
88 --root ${CMAKE_SOURCE_DIR}
9+ --xml-pretty
910 --print-summary
10- --html
11- --html-details
12- --fail-under-line 80
1311 --exclude ${CMAKE_BINARY_DIR}
1412 --exclude ${CMAKE_SOURCE_DIR} /app
1513 --exclude ${CMAKE_SOURCE_DIR} /tests
16- --exclude ${CMAKE_SOURCE_DIR} /benchmarks
17- --output ${COVERAGE_OUTPUT_DIR} /index.html
14+ --output ${COVERAGE_OUTPUT_DIR} /coverage.xml
1815 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
1916 COMMENT "Generating coverage report with gcovr"
2017 VERBATIM
You can’t perform that action at this time.
0 commit comments