diff options
-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()
|