diff options
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b6411ab..d8633d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -186,11 +186,13 @@ add_custom_target(check COMMAND "test_suite" # ## Code coverage # -include(CodeCoverage) -SETUP_TARGET_FOR_COVERAGE(coverage - test_suite - coverage -) +if(CMAKE_BUILD_TYPE MATCHES DEBUG) + include(CodeCoverage) + SETUP_TARGET_FOR_COVERAGE(coverage + test_suite + coverage + ) +endif() # ## Install target |