Ignore libs files

This commit is contained in:
tycho 2015-12-15 20:52:02 +00:00
parent fde8c1ef14
commit 25af3c657e

View File

@ -90,6 +90,8 @@ ENDIF() # NOT CMAKE_BUILD_TYPE STREQUAL "Debug"
# Pass them in list form, e.g.: "-j;2" for -j 2 # Pass them in list form, e.g.: "-j;2" for -j 2
FUNCTION(SETUP_TARGET_FOR_COVERAGE _targetname _testrunner _outputname) FUNCTION(SETUP_TARGET_FOR_COVERAGE _targetname _testrunner _outputname)
message(${_testrunner})
IF(NOT LCOV_PATH) IF(NOT LCOV_PATH)
MESSAGE(FATAL_ERROR "lcov not found! Aborting...") MESSAGE(FATAL_ERROR "lcov not found! Aborting...")
ENDIF() # NOT LCOV_PATH ENDIF() # NOT LCOV_PATH
@ -109,7 +111,7 @@ COMMAND ${_testrunner} ${ARGV3}
# Capturing lcov counters and generating report # Capturing lcov counters and generating report
COMMAND ${LCOV_PATH} --directory . --capture --output-file ${_outputname}.info COMMAND ${LCOV_PATH} --directory . --capture --output-file ${_outputname}.info
COMMAND ${LCOV_PATH} --remove ${_outputname}.info 'tests/*' '/usr/*' --output-file ${_outputname}.info.cleaned COMMAND ${LCOV_PATH} --remove ${_outputname}.info 'tests/*' '/usr/*' 'lib/*' --output-file ${_outputname}.info.cleaned
COMMAND ${GENHTML_PATH} -o ${_outputname} ${_outputname}.info.cleaned COMMAND ${GENHTML_PATH} -o ${_outputname} ${_outputname}.info.cleaned
COMMAND ${CMAKE_COMMAND} -E remove ${_outputname}.info ${_outputname}.info.cleaned COMMAND ${CMAKE_COMMAND} -E remove ${_outputname}.info ${_outputname}.info.cleaned