Switching coverage upload mechanism.

This commit is contained in:
jgoppert
2015-11-12 01:22:40 -05:00
parent 787606b6b8
commit 10b89a2594
5 changed files with 19 additions and 40 deletions
+3 -2
View File
@@ -23,13 +23,14 @@ foreach(test_name ${tests})
add_dependencies(test_build ${test_name})
endforeach()
if (COVERAGE)
if (${CMAKE_BUILD_TYPE} STREQUAL "Profile")
add_custom_target(coverage
COMMAND ${CMAKE_CTEST_COMMAND}
COMMAND lcov --capture --directory . --output-file coverage.info
COMMAND genhtml coverage.info --output-directory out
COMMAND x-www-browser out/index.html
WORKING_DIRECTORY ${CMAKE_BUILD_DIR}
DEPENDS coveralls test_build
DEPENDS test_build
)
endif()