aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-08-17 21:27:27 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-03-06 14:00:12 +0100
commit719c4b3b6e8dda3a3a8d90c5761da12292716eb5 (patch)
tree36c2fd7f0ca00d523a95e097d7a2e5dcec51f126 /CMakeLists.txt
parentd029e2c08e477d0d281feff71e0fe2908539af3b (diff)
downloadayatana-indicator-display-719c4b3b6e8dda3a3a8d90c5761da12292716eb5.tar.gz
ayatana-indicator-display-719c4b3b6e8dda3a3a8d90c5761da12292716eb5.tar.bz2
ayatana-indicator-display-719c4b3b6e8dda3a3a8d90c5761da12292716eb5.zip
CMakeLists.txt: Revert introducing configure switch -Denable_coverage, the coverage enablement is enabled via CMAKE_BUILD_TYPE=coverage env var.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt15
1 files changed, 6 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bb4b531..94615b6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,7 +14,6 @@ set(SERVICE_LIB ${PACKAGE})
set(SERVICE_EXEC "${PACKAGE}-service")
option(enable_tests "Build the package's automatic tests." ON)
-option(enable_coverage "Generate code coverage reports." OFF)
set(CMAKE_INSTALL_PKGLIBEXECDIR "${CMAKE_INSTALL_LIBEXECDIR}/${CMAKE_PROJECT_NAME}")
set(CMAKE_INSTALL_FULL_PKGLIBEXECDIR "${CMAKE_INSTALL_FULL_LIBEXECDIR}/${CMAKE_PROJECT_NAME}")
@@ -81,12 +80,10 @@ add_subdirectory(po)
if(${enable_tests})
enable_testing()
add_subdirectory(tests)
- if (${enable_coverage})
- find_package(CoverageReport)
- ENABLE_COVERAGE_REPORT(
- TARGETS ${SERVICE_LIB} ${SERVICE_EXEC}
- TESTS ${COVERAGE_TEST_TARGETS}
- FILTER /usr/include ${CMAKE_BINARY_DIR}/*
- )
- endif()
+ find_package(CoverageReport)
+ ENABLE_COVERAGE_REPORT(
+ TARGETS ${SERVICE_LIB} ${SERVICE_EXEC}
+ TESTS ${COVERAGE_TEST_TARGETS}
+ FILTER /usr/include ${CMAKE_BINARY_DIR}/*
+ )
endif()