Compare commits
1 Commits
d57bbeb634
...
f76b9c6758
Author | SHA1 | Date | |
---|---|---|---|
f76b9c6758 |
@@ -1,7 +1,7 @@
|
||||
function(add_code_coverage)
|
||||
list(GET ARGN 0 _target)
|
||||
|
||||
if(CMAKE_CXX_COMPILER_IS_GCC)
|
||||
if(ENABLE_CODE_COVERAGE AND CMAKE_CXX_COMPILER_IS_GCC)
|
||||
find_program(LCOV_EXE NAMES lcov)
|
||||
find_program(GENHTML_EXE NAMES genhtml)
|
||||
target_compile_options(${_target} PUBLIC "--coverage")
|
||||
|
Reference in New Issue
Block a user