Changeset View
Changeset View
Standalone View
Standalone View
kcms/cursortheme/CMakeLists.txt
1 | # KI18N Translation Domain for this library | 1 | # KI18N Translation Domain for this library | ||
---|---|---|---|---|---|
2 | add_definitions(-DTRANSLATION_DOMAIN=\"kcmmousetheme\") | 2 | add_definitions(-DTRANSLATION_DOMAIN=\"kcmcursortheme\") | ||
3 | | ||||
4 | include_directories( ${LIBUSB_INCLUDE_DIR} ) | ||||
3 | 5 | | |||
4 | if(X11_Xcursor_FOUND) | 6 | if(X11_Xcursor_FOUND) | ||
5 | set( libnoinst_SRCS | 7 | set( libnoinst_SRCS | ||
6 | xcursor/themepage.cpp | | |||
7 | xcursor/thememodel.cpp | 8 | xcursor/thememodel.cpp | ||
8 | xcursor/cursortheme.cpp | 9 | xcursor/cursortheme.cpp | ||
9 | xcursor/xcursortheme.cpp | 10 | xcursor/xcursortheme.cpp | ||
10 | xcursor/previewwidget.cpp | 11 | xcursor/previewwidget.cpp | ||
11 | xcursor/itemdelegate.cpp | | |||
12 | xcursor/sortproxymodel.cpp | 12 | xcursor/sortproxymodel.cpp | ||
13 | ../krdb/krdb.cpp ) | 13 | ../krdb/krdb.cpp ) | ||
14 | ki18n_wrap_ui( libnoinst_SRCS xcursor/themepage.ui ) | | |||
15 | include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/xcursor/ ) | 14 | include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/xcursor/ ) | ||
16 | include_directories( ${KWINDOWSYSTEM_INCLUDE_DIR} ) | | |||
17 | else() | 15 | else() | ||
18 | set( libnoinst_SRCS xcursor/themepage.cpp ) | 16 | set( libnoinst_SRCS core/themepage.cpp ) | ||
19 | include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/xcursor/ ) | 17 | include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/core/ ) | ||
20 | endif() | 18 | endif() | ||
21 | 19 | | |||
22 | set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) | 20 | set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) | ||
23 | qt5_add_dbus_interface(libnoinst_SRCS ${klauncher_xml} klauncher_iface) | 21 | qt5_add_dbus_interface(libnoinst_SRCS ${klauncher_xml} klauncher_iface) | ||
24 | 22 | | |||
25 | ########### next target ############### | 23 | ########### next target ############### | ||
26 | 24 | | |||
27 | set(kcm_cursortheme_PART_SRCS kcmcursortheme.cpp ${libnoinst_SRCS}) | 25 | set(kcm_cursortheme_PART_SRCS kcmcursortheme.cpp ${libnoinst_SRCS}) | ||
28 | 26 | | |||
29 | add_library(kcm_cursortheme MODULE ${kcm_cursortheme_PART_SRCS}) | 27 | add_library(kcm_cursortheme MODULE ${kcm_cursortheme_PART_SRCS}) | ||
30 | 28 | | |||
31 | 29 | | |||
32 | target_link_libraries(kcm_cursortheme | 30 | target_link_libraries(kcm_cursortheme | ||
33 | Qt5::DBus | 31 | Qt5::DBus | ||
34 | Qt5::X11Extras | 32 | Qt5::X11Extras | ||
33 | Qt5::Quick | ||||
35 | KF5::Archive | 34 | KF5::Archive | ||
36 | KF5::KCMUtils | 35 | KF5::KCMUtils | ||
37 | KF5::I18n | 36 | KF5::I18n | ||
38 | KF5::KIOCore | 37 | KF5::KIOCore | ||
39 | KF5::KIOWidgets | 38 | KF5::KIOWidgets | ||
40 | KF5::KDELibs4Support | 39 | KF5::KDELibs4Support | ||
41 | KF5::NewStuff | 40 | KF5::NewStuff | ||
41 | KF5::QuickAddons | ||||
42 | ${X11_LIBRARIES} | 42 | ${X11_LIBRARIES} | ||
43 | XCB::XCB | 43 | XCB::XCB | ||
44 | ) | 44 | ) | ||
45 | 45 | | |||
46 | if (X11_Xcursor_FOUND) | 46 | if (X11_Xcursor_FOUND) | ||
47 | target_link_libraries(kcm_cursortheme ${X11_Xcursor_LIB}) | 47 | target_link_libraries(kcm_cursortheme ${X11_Xcursor_LIB}) | ||
48 | endif () | 48 | endif () | ||
49 | if (X11_Xfixes_FOUND) | 49 | if (X11_Xfixes_FOUND) | ||
50 | target_link_libraries(kcm_cursortheme ${X11_Xfixes_LIB}) | 50 | target_link_libraries(kcm_cursortheme ${X11_Xfixes_LIB}) | ||
51 | endif () | 51 | endif () | ||
52 | 52 | | |||
53 | install(TARGETS kcm_cursortheme DESTINATION ${PLUGIN_INSTALL_DIR} ) | 53 | install(TARGETS kcm_cursortheme DESTINATION ${PLUGIN_INSTALL_DIR}/kcms ) | ||
54 | 54 | | |||
55 | kcoreaddons_desktop_to_json(kcm_cursortheme "kcm_cursortheme.desktop") | ||||
55 | 56 | | |||
56 | ########### install files ############### | 57 | ########### install files ############### | ||
57 | 58 | | |||
58 | install( FILES cursortheme.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) | 59 | install( FILES kcm_cursortheme.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) | ||
59 | install( FILES xcursor/xcursor.knsrc DESTINATION ${CONFIG_INSTALL_DIR} ) | 60 | install( FILES xcursor/xcursor.knsrc DESTINATION ${CONFIG_INSTALL_DIR} ) | ||
60 | 61 | | |||
62 | kpackage_install_package(package kcm_cursortheme kcms) | ||||
63 | |