diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-04-27 22:21:09 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-05-05 15:47:16 +0200 |
commit | 4258f017f0125375b1bacb277e3055f7cdd22c42 (patch) | |
tree | bf92044c0d3e771188e50f3085114f276d6059cf | |
parent | b440e7581fa2c22d34b4bd2e838598653255d881 (diff) | |
download | ayatana-indicator-datetime-4258f017f0125375b1bacb277e3055f7cdd22c42.tar.gz ayatana-indicator-datetime-4258f017f0125375b1bacb277e3055f7cdd22c42.tar.bz2 ayatana-indicator-datetime-4258f017f0125375b1bacb277e3055f7cdd22c42.zip |
CMakeLists.txt: Rename CMake options 'enable_tests' to 'ENABLE_TESTS' and 'enable_lcov' to 'ENABLE_COVERAGE' (both defaulting to 'OFF').
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 99ad4a8..811c8fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,8 +7,8 @@ include (GNUInstallDirs) set (PROJECT_VERSION "0.8.3") set (PACKAGE ${CMAKE_PROJECT_NAME}) -option (enable_tests "Build the package's automatic tests." ON) -option (enable_lcov "Generate lcov code coverage reports." ON) +option (ENABLE_TESTS "Build the package's automatic tests." OFF) +option (ENABLE_COVERAGE "Generate lcov code coverage reports." OFF) ## ## GNU standard installation directories @@ -105,13 +105,13 @@ include_directories (${CMAKE_CURRENT_SOURCE_DIR}/include) include_directories (${CMAKE_CURRENT_BINARY_DIR}/include) # testing & coverage -if (${enable_tests}) +if (${ENABLE_TESTS}) pkg_check_modules (DBUSTEST REQUIRED dbustest-1>=14.04.0) set (GTEST_SOURCE_DIR /usr/src/gtest/src) set (GTEST_INCLUDE_DIR ${GTEST_SOURCE_DIR}/..) set (GTEST_LIBS -lpthread) enable_testing () - if (${enable_lcov}) + if (${ENABLE_COVERAGE}) include(GCov) endif () endif () @@ -121,6 +121,6 @@ add_subdirectory(include) add_subdirectory(src) add_subdirectory(data) add_subdirectory(po) -if (${enable_tests}) +if (${ENABLE_TESTS}) add_subdirectory(tests) endif () |