make coverage is only available with a debug build
This commit is contained in:
+5
-3
@@ -186,11 +186,13 @@ add_custom_target(check COMMAND "test_suite"
|
|||||||
#
|
#
|
||||||
## Code coverage
|
## Code coverage
|
||||||
#
|
#
|
||||||
include(CodeCoverage)
|
if(CMAKE_BUILD_TYPE MATCHES DEBUG)
|
||||||
SETUP_TARGET_FOR_COVERAGE(coverage
|
include(CodeCoverage)
|
||||||
|
SETUP_TARGET_FOR_COVERAGE(coverage
|
||||||
test_suite
|
test_suite
|
||||||
coverage
|
coverage
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
#
|
#
|
||||||
## Install target
|
## Install target
|
||||||
|
|||||||
Reference in New Issue
Block a user