Add coverage checks.

This commit is contained in:
2019-08-04 22:21:50 -07:00
parent de4dd70407
commit 323ac318f8
3 changed files with 40 additions and 2 deletions

View File

@@ -14,6 +14,8 @@ if(DEFINED ENV{CMAKE_GCOV})
add_compile_options(-fprofile-arcs -ftest-coverage)
# Need CMake 3.15+.
add_link_options(-fprofile-arcs -ftest-coverage)
add_custom_target(coverage COMMAND lcov -d . -t wrmath -o wrmath.info -c
COMMAND genhtml -o coverage-report wrmath.info)
endif()