~singpolyma/biboumi

3b7bbe147229ee06de8b024e42e86d435cb0f72e — Florent Le Coz 9 years ago db5e02a
make coverage is only available with a debug build
1 files changed, 7 insertions(+), 5 deletions(-)

M CMakeLists.txt
M CMakeLists.txt => CMakeLists.txt +7 -5
@@ 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