summaryrefslogtreecommitdiff
blob: 6f007f48d9e00d4f5e64d3fdf6462f888f08d71a (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
commit c6198b4b57b36caec9f2267e8a70243cc77681b1
Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
Date:   Thu Mar 17 00:03:38 2016 +0100

    Remove unused deps
    
    REVIEW: 127404

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 620c789..239aa07 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,24 +6,18 @@ set (QT_MIN_VERSION "5.2.0")
 find_package(ECM 1.7.0 REQUIRED CONFIG)
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
 
-find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Qml Quick QuickWidgets Svg Test)
+find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Qml Quick Svg)
 find_package(KF5 REQUIRED COMPONENTS 
     CoreAddons 
     Config 
     WidgetsAddons 
     Config 
     DBusAddons 
-    Declarative
     I18n 
     GuiAddons 
-    ConfigWidgets 
-    ItemViews 
-    IconThemes 
-    Completion 
-    TextWidgets
+    ConfigWidgets
+    Completion
     XmlGui
-    KIO
-    NotifyConfig
     NewStuff
     DocTools
     KDELibs4Support
@@ -31,8 +25,6 @@ find_package(KF5 REQUIRED COMPONENTS
 
 find_package(KF5KDEGames 4.9.0 REQUIRED)
 
-find_package(Phonon4Qt5)
-
 include(FeatureSummary)
 include(ECMAddAppIcon)
 include(ECMInstallIcons)
@@ -100,9 +92,17 @@ kconfig_add_kcfg_files( kpat_SRCS settings.kcfgc )
 
 file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/icons/*-apps-kpat.png")
 ecm_add_app_icon(kpat_SRCS ICONS ${ICONS_SRCS})
-add_executable( kpat ${kpat_SRCS} )
-target_link_libraries( kpat kcardgame KF5KDEGames KF5::KIOCore Phonon::phonon4qt5 KF5::I18n KF5::DBusAddons KF5::KDELibs4Support)
-install( TARGETS kpat ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
+add_executable(kpat ${kpat_SRCS})
+target_link_libraries(kpat
+    KF5::Crash
+    KF5::DBusAddons
+    KF5::I18n
+    KF5::KDELibs4Support
+    KF5KDEGames
+    kcardgame
+)
+
+install(TARGETS kpat ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
 
 
 ########### install files ###############