make coverage is only available with a debug build

This commit is contained in:
Florent Le Coz
2015-10-29 02:52:24 +01:00
parent db5e02a0a6
commit 3b7bbe1472
+7 -5
View File
@@ -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)
test_suite SETUP_TARGET_FOR_COVERAGE(coverage
coverage test_suite
) coverage
)
endif()
# #
## Install target ## Install target