Поддержка версий lcov до 1.14
This commit is contained in:
parent
7e50160742
commit
ece04ba69b
@ -27,9 +27,11 @@ function(myx_cmake_code_coverage target)
|
|||||||
${target}-coverage
|
${target}-coverage
|
||||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||||
COMMAND ${LCOV_EXE} --test-name ${target} --output "${target}.lcov" --capture
|
COMMAND ${LCOV_EXE} --test-name ${target} --output "${target}.lcov" --capture
|
||||||
--exclude "/usr/\\\*"
|
--no-exernal
|
||||||
--exclude "${CMAKE_BINARY_DIR}/\\\*"
|
--base-directory ${CMAKE_SOURCE_DIR}
|
||||||
--directory ${CMAKE_BINARY_DIR})
|
--directory ${CMAKE_BINARY_DIR})
|
||||||
|
# --exclude "/usr/\\\*"
|
||||||
|
# --exclude "${CMAKE_BINARY_DIR}/\\\*"
|
||||||
add_dependencies(${target}-coverage ${target})
|
add_dependencies(${target}-coverage ${target})
|
||||||
|
|
||||||
if(GENHTML_EXE)
|
if(GENHTML_EXE)
|
||||||
|
Loading…
Reference in New Issue
Block a user