aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-11-14 10:58:52 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-12-15 20:27:19 +0100
commitf26dba318ecc765f41b909e3e0dde470988f738c (patch)
treea1e96036ace3acfed6c86b436ce32c71ded4abe6 /tests/CMakeLists.txt
parent796525b933045a6477f57a60aff394cdd5f62a32 (diff)
downloadayatana-indicator-display-f26dba318ecc765f41b909e3e0dde470988f738c.tar.gz
ayatana-indicator-display-f26dba318ecc765f41b909e3e0dde470988f738c.tar.bz2
ayatana-indicator-display-f26dba318ecc765f41b909e3e0dde470988f738c.zip
Allow building with(out) Lomiri features
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 33684d6..6b25955 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,7 +1,6 @@
set(CMAKE_AUTOMOC ON)
find_package(GMock REQUIRED)
-find_package(Qt5Core REQUIRED)
find_package(Qt5Test REQUIRED)
find_package(Qt5DBus COMPONENTS Qt5DBusMacros REQUIRED)
@@ -31,9 +30,11 @@ add_compile_options(${CXX_WARNING_ARGS})
add_test(cppcheck cppcheck --enable=all -USCHEMA_DIR --error-exitcode=2 --inline-suppr --library=qt -I${CMAKE_SOURCE_DIR} -i${CMAKE_SOURCE_DIR}/tests/utils/qmain.cpp -i${CMAKE_SOURCE_DIR}/tests/gmock ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/tests --suppress=missingIncludeSystem --suppress=uninitDerivedMemberVar --suppress=unmatchedSuppression --suppress=constParameter --suppress=unusedFunction)
-add_subdirectory(integration)
-add_subdirectory(unit)
-add_subdirectory(utils)
+if (ENABLE_LOMIRI_FEATURES)
+ add_subdirectory (integration)
+ add_subdirectory (unit)
+ add_subdirectory (utils)
+endif ()
set(COVERAGE_TEST_TARGETS
${COVERAGE_TEST_TARGETS}