aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-02-06 16:16:12 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-02-08 18:24:13 +0100
commit44e35e319fd2a9bdcc4027e5b9e72e43d2effde0 (patch)
treef4f15d33913c0b4ae5d23f4087f35aecf5d7c3ca
parent2561e4699ee6e5aa1b28c1cc99f4b818c4c3b095 (diff)
downloadqmenumodel-44e35e319fd2a9bdcc4027e5b9e72e43d2effde0.tar.gz
qmenumodel-44e35e319fd2a9bdcc4027e5b9e72e43d2effde0.tar.bz2
qmenumodel-44e35e319fd2a9bdcc4027e5b9e72e43d2effde0.zip
tests/client/CMakeLists.txt: Only enable coverage reporting if the flag is set for it
-rw-r--r--tests/client/CMakeLists.txt21
1 files changed, 11 insertions, 10 deletions
diff --git a/tests/client/CMakeLists.txt b/tests/client/CMakeLists.txt
index 3d1dc9a..34bef38 100644
--- a/tests/client/CMakeLists.txt
+++ b/tests/client/CMakeLists.txt
@@ -72,13 +72,14 @@ declare_test(ayatanamenuactiontest)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/qmlfiles.h.in
${CMAKE_CURRENT_BINARY_DIR}/qmlfiles.h)
-find_package(CoverageReport)
-enable_coverage_report(
- TARGETS
- qmenumodel
- FILTER
- ${CMAKE_SOURCE_DIR}/tests/*
- ${CMAKE_BINARY_DIR}/*
- TESTS
- ${TESTS}
-)
+if (ENABLE_COVERAGE)
+ enable_coverage_report(
+ TARGETS
+ qmenumodel
+ FILTER
+ ${CMAKE_SOURCE_DIR}/tests/*
+ ${CMAKE_BINARY_DIR}/*
+ TESTS
+ ${TESTS}
+ )
+endif()