-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
91 lines (64 loc) · 2.52 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
project(kuiserver-standalone)
cmake_minimum_required(VERSION 3.0)
find_package(Qt5 CONFIG REQUIRED COMPONENTS DBus Widgets Test Network)
find_package(ECM REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
include(KDEInstallDirs)
include(KDECMakeSettings)
add_definitions(-DTRANSLATION_DOMAIN=\"kuiserver5\")
find_package(KF5I18n)
find_package(KF5Config)
find_package(KF5Init)
find_package(KF5KIO)
find_package(KF5Notifications)
find_package(KF5DBusAddons)
set(kuiserver_KDEINIT_SRCS
main.cpp
uiserver.cpp
jobview.cpp
progresslistmodel.cpp
progresslistdelegate.cpp
requestviewcallwatcher.cpp
)
set(kuiserver_KDEINIT_PRIVATE
progresslistdelegate_p.h
uiserver_p.h
)
ki18n_wrap_ui(kuiserver_KDEINIT_SRCS configdialog.ui)
add_subdirectory( tests )
#<DBus Stuff>
#<JobView>
set(jobview_xml org.kde.JobView.xml)
qt5_add_dbus_adaptor(kuiserver_KDEINIT_SRCS ${jobview_xml} jobview.h JobView jobviewadaptor )
qt5_add_dbus_interface(kuiserver_KDEINIT_SRCS ${jobview_xml} jobview_interface )
#</JobView>
#<JobViewServer>
set(jobviewserver_xml ${KJOBWIDGETS_DBUS_INTERFACES_DIR}/kf5_org.kde.JobViewServer.xml)
qt5_add_dbus_adaptor(kuiserver_KDEINIT_SRCS ${jobviewserver_xml} progresslistmodel.h ProgressListModel jobviewserveradaptor )
qt5_add_dbus_interface(kuiserver_KDEINIT_SRCS ${jobviewserver_xml} jobviewserver_interface )
#</JobViewServer>
qt5_add_dbus_adaptor(kuiserver_KDEINIT_SRCS org.kde.kuiserver.xml progresslistmodel.h ProgressListModel kuiserveradaptor )
configure_file(org.kde.kuiserver.service.in
${CMAKE_CURRENT_BINARY_DIR}/org.kde.kuiserver.service)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kuiserver.service
DESTINATION ${KDE_INSTALL_DBUSSERVICEDIR} RENAME kf5_org.kde.kuiserver.service)
#</DBus Stuff>
kconfig_add_kcfg_files(kuiserver_KDEINIT_SRCS kuiserversettings.kcfgc)
kf5_add_kdeinit_executable( kuiserver5 ${kuiserver_KDEINIT_SRCS})
target_link_libraries(kdeinit_kuiserver5
Qt5::DBus
KF5::ConfigWidgets
KF5::DBusAddons
KF5::ItemViews
KF5::Notifications
KF5::KIOCore
KF5::KIOWidgets
KF5::XmlGui
KF5::I18n
)
install(TARGETS kdeinit_kuiserver5 ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
target_link_libraries( kuiserver5 kdeinit_kuiserver5 )
install(TARGETS kuiserver5 ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
install( FILES kuiserver.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
# contains list of debug categories, for kdebugsettings
install(FILES kuiserver.categories DESTINATION ${KDE_INSTALL_CONFDIR})