aboutsummaryrefslogtreecommitdiff
path: root/ports/kf5notifications/fix_config_cmake.patch
blob: 318881cfbfaeea9516837bfe4f3ef9c373ec4bf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
diff --git a/KF5NotificationsConfig.cmake.in b/KF5NotificationsConfig.cmake.in
index eeded42..6b261c0 100644
--- a/KF5NotificationsConfig.cmake.in
+++ b/KF5NotificationsConfig.cmake.in
@@ -11,5 +11,47 @@ if (@HAVE_DBUS@)
     find_dependency(Qt5DBus @REQUIRED_QT_VERSION@)
 endif()
 
+if (NOT @BUILD_SHARED_LIBS@) 
+    find_dependency(KF5CoreAddons "@KF_DEP_VERSION@")
+    find_dependency(KF5Config "@KF_DEP_VERSION@")
+
+    if (@HAVE_KWINDOWSYSTEM@)
+        find_dependency(KF5WindowSystem "@KF_DEP_VERSION@")
+    endif()
+
+    if (@WITH_SNORETOAST@)
+        find_dependency(LibSnoreToast)
+        find_dependency(Qt5Network @REQUIRED_QT_VERSION@)
+    endif()
+
+    if (@HAVE_PHONON4QT5@)
+        find_dependency(Phonon4Qt5)
+    endif()
+
+    if (@Canberra_FOUND@)
+        find_dependency(Canberra)
+    endif()
+
+    if (@Qt5TextToSpeech_FOUND@)
+        find_dependency(Qt5TextToSpeech @REQUIRED_QT_VERSION@)
+    endif()
+
+    if(@X11_FOUND@)
+        find_dependency(Qt5X11Extras @REQUIRED_QT_VERSION@)
+    endif()
+
+    if(APPLE)
+        find_dependency(Qt5MacExtras @REQUIRED_QT_VERSION@)
+    endif()
+
+    if(@HAVE_DBUSMENUQT@)
+        find_dependency(dbusmenu-qt5)
+    endif()
+
+    if (ANDROID)
+        find_dependency(Qt5AndroidExtras @REQUIRED_QT_VERSION@)
+    endif()
+endif()
+
 include("${CMAKE_CURRENT_LIST_DIR}/KF5NotificationsTargets.cmake")
 @PACKAGE_INCLUDE_QCHTARGETS@
-- 
GitLab