forked from KDE/ktuberling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
95 lines (77 loc) · 2.46 KB
/
CMakeLists.txt
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
project(ktuberling)
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.3.0")
set (KF5_MIN_VERSION "5.15.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 PrintSupport Svg Widgets Xml)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Completion
Config
ConfigWidgets
CoreAddons
Crash
DBusAddons
I18n
KDELibs4Support #TODO eventually remove kdelibs4support
WidgetsAddons
XmlGui
)
find_package(KF5KDEGames 4.9.0 REQUIRED)
find_package(Phonon4Qt5 CONFIG REQUIRED)
include_directories(BEFORE ${PHONON_INCLUDES})
include(FeatureSummary)
include(ECMAddAppIcon)
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
add_subdirectory(sounds)
add_subdirectory(pics)
add_subdirectory(doc)
########### next target ###############
set(ktuberling_SRCS
action.cpp
main.cpp
toplevel.cpp
playground.cpp
todraw.cpp
soundfactory.cpp
playgrounddelegate.cpp
)
file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/*-apps-ktuberling.png")
ecm_add_app_icon(ktuberling_SRCS ICONS ${ICONS_SRCS})
add_executable(ktuberling ${ktuberling_SRCS})
target_link_libraries(ktuberling
Qt5::PrintSupport
Qt5::Svg
KF5::Completion
KF5::Crash
KF5::DBusAddons
KF5::KDELibs4Support
KF5::XmlGui
Phonon::phonon4qt5
KF5KDEGames
)
install(TARGETS ktuberling ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
install(PROGRAMS org.kde.ktuberling.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES ktuberlingui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/ktuberling)
ecm_install_icons(ICONS
128-apps-ktuberling.png
16-apps-ktuberling.png
22-apps-ktuberling.png
32-apps-ktuberling.png
48-apps-ktuberling.png
64-apps-ktuberling.png
128-mimetypes-application-x-tuberling.png
16-mimetypes-application-x-tuberling.png
22-mimetypes-application-x-tuberling.png
32-mimetypes-application-x-tuberling.png
48-mimetypes-application-x-tuberling.png
64-mimetypes-application-x-tuberling.png
DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor
)
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)