blob: e26b27e8c3be4d9f5dd9c1343e2ebfb77f014a03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff --git a/dataengines/notifications/CMakeLists.txt b/dataengines/notifications/CMakeLists.txt
index 8a90cb59..597b3f7e 100644
--- a/dataengines/notifications/CMakeLists.txt
+++ b/dataengines/notifications/CMakeLists.txt
@@ -46,7 +46,8 @@ ecm_qt_declare_logging_category(notifications_test_SRCS HEADER debug.h
IDENTIFIER NOTIFICATIONS
CATEGORY_NAME kde.dataengine.notifications`
DEFAULT_SEVERITY Info)
-
-add_executable(notification_test ${notifications_test_SRCS})
-target_link_libraries(notification_test Qt5::Test Qt5::Core)
-ecm_mark_as_test(notification_test)
+if(BUILD_TESTING)
+ add_executable(notification_test ${notifications_test_SRCS})
+ target_link_libraries(notification_test Qt5::Test Qt5::Core)
+ ecm_mark_as_test(notification_test)
+endif()
|