aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-21 20:52:10 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-04-21 20:57:03 +0200
commit0573203124f66f826a0f6b06262f7610b00f0fb6 (patch)
tree3469e4ca1d3973d8c6faa57aa85567ac5811d97c /tests
parentab041b778f0a559e75f6d9a8b10ba899e7576616 (diff)
downloadayatana-ido-0573203124f66f826a0f6b06262f7610b00f0fb6.tar.gz
ayatana-ido-0573203124f66f826a0f6b06262f7610b00f0fb6.tar.bz2
ayatana-ido-0573203124f66f826a0f6b06262f7610b00f0fb6.zip
{tests/,}CMakeLists.txt: Add ENABLE_COVERAGE build option.
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 1ecf8e6..69bc291 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -7,7 +7,9 @@ target_include_directories("gtest-menuitems" PUBLIC "${CMAKE_SOURCE_DIR}/src")
add_test("gtest-menuitems" "gtest-menuitems")
target_link_libraries("gtest-menuitems" ${PROJECT_DEPS_LIBRARIES} "-L${CMAKE_BINARY_DIR}/src" -layatana-ido3-0.4 gtest_main)
-# coverage
-find_package(CoverageReport)
-ENABLE_COVERAGE_REPORT(TARGETS "gtest-menuitems" TESTS "gtest-menuitems")
+# coverage
+if (ENABLE_COVERAGE)
+ find_package(CoverageReport)
+ ENABLE_COVERAGE_REPORT(TARGETS "gtest-menuitems" TESTS "gtest-menuitems")
+endif()