diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-02-08 18:25:13 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-02-08 18:25:13 +0100 |
commit | 24cc4eefb93849302985559958c5392c9ea81552 (patch) | |
tree | f4f15d33913c0b4ae5d23f4087f35aecf5d7c3ca /tests/client/CMakeLists.txt | |
parent | 2561e4699ee6e5aa1b28c1cc99f4b818c4c3b095 (diff) | |
parent | 44e35e319fd2a9bdcc4027e5b9e72e43d2effde0 (diff) | |
download | qmenumodel-24cc4eefb93849302985559958c5392c9ea81552.tar.gz qmenumodel-24cc4eefb93849302985559958c5392c9ea81552.tar.bz2 qmenumodel-24cc4eefb93849302985559958c5392c9ea81552.zip |
Merge branch 'tari01-pr/fix-forced-coverage'
Attributes GH PR #20: https://github.com/AyatanaIndicators/qmenumodel/pull/20
Diffstat (limited to 'tests/client/CMakeLists.txt')
-rw-r--r-- | tests/client/CMakeLists.txt | 21 |
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()
|