Lines Matching full:coverage
109 add_custom_target(coverage
111 COMMAND lcov --capture --directory . --output-file coverage.info
112 COMMAND genhtml coverage.info --highlight --legend --output-directory coverage_html
113 COMMAND echo "Coverage report ready: ${CMAKE_CURRENT_BINARY_DIR}/coverage_html/index.html")
115 add_custom_target(llvm-coverage
124 COMMAND echo "Coverage report ready: ${CMAKE_CURRENT_BINARY_DIR}/coverage_profiles/report.html"
130 option(c "Enable code coverage instrumentation" OFF)
131 if (COVERAGE)
132 message("Configuring code coverage instrumentation")
135 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fprofile-arcs -ftest-coverage --coverage")
136 set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -g -fprofile-arcs -ftest-coverage --coverage")
141 message(WARNING "Code coverage build not implemented for compiler ${CMAKE_C_COMPILER_ID}")
143 endif (COVERAGE)