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=\"kcm_cursortheme\") | 2 | add_definitions(-DTRANSLATION_DOMAIN=\"kcm_cursortheme\") | ||
3 | 3 | | |||
4 | include_directories( ${LIBUSB_INCLUDE_DIR} ) | 4 | include_directories( ${LIBUSB_INCLUDE_DIR} ) | ||
5 | 5 | | |||
6 | 6 | | |||
7 | set( libnoinst_SRCS | 7 | set( libnoinst_SRCS | ||
8 | xcursor/thememodel.cpp | 8 | xcursor/thememodel.cpp | ||
9 | xcursor/cursortheme.cpp | 9 | xcursor/cursortheme.cpp | ||
10 | xcursor/xcursortheme.cpp | 10 | xcursor/xcursortheme.cpp | ||
11 | xcursor/previewwidget.cpp | 11 | xcursor/previewwidget.cpp | ||
12 | xcursor/sortproxymodel.cpp | 12 | xcursor/sortproxymodel.cpp | ||
13 | ../krdb/krdb.cpp ) | 13 | ../krdb/krdb.cpp ) | ||
14 | include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/xcursor/ ) | 14 | include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/xcursor/ ) | ||
15 | 15 | | |||
16 | | ||||
17 | set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) | | |||
18 | qt5_add_dbus_interface(libnoinst_SRCS ${klauncher_xml} klauncher_iface) | | |||
19 | | ||||
20 | ########### next target ############### | 16 | ########### next target ############### | ||
21 | 17 | | |||
22 | set(kcm_cursortheme_PART_SRCS kcmcursortheme.cpp ${libnoinst_SRCS}) | 18 | set(kcm_cursortheme_PART_SRCS kcmcursortheme.cpp ${libnoinst_SRCS}) | ||
23 | 19 | | |||
24 | kconfig_add_kcfg_files(kcm_cursortheme_PART_SRCS cursorthemesettings.kcfgc GENERATE_MOC) | 20 | kconfig_add_kcfg_files(kcm_cursortheme_PART_SRCS cursorthemesettings.kcfgc GENERATE_MOC) | ||
25 | add_library(kcm_cursortheme MODULE ${kcm_cursortheme_PART_SRCS}) | 21 | add_library(kcm_cursortheme MODULE ${kcm_cursortheme_PART_SRCS}) | ||
26 | 22 | | |||
27 | 23 | | |||
28 | target_link_libraries(kcm_cursortheme | 24 | target_link_libraries(kcm_cursortheme | ||
29 | Qt5::DBus | 25 | Qt5::DBus | ||
30 | Qt5::X11Extras | 26 | Qt5::X11Extras | ||
31 | Qt5::Quick | 27 | Qt5::Quick | ||
32 | KF5::Archive | 28 | KF5::Archive | ||
33 | KF5::KCMUtils | 29 | KF5::KCMUtils | ||
34 | KF5::I18n | 30 | KF5::I18n | ||
35 | KF5::GuiAddons | 31 | KF5::GuiAddons | ||
36 | KF5::WindowSystem | 32 | KF5::WindowSystem | ||
37 | KF5::KIOCore | 33 | KF5::KIOCore | ||
38 | KF5::KIOWidgets | 34 | KF5::KIOWidgets | ||
39 | KF5::KDELibs4Support | 35 | KF5::KDELibs4Support | ||
40 | KF5::NewStuffCore | 36 | KF5::NewStuffCore | ||
41 | KF5::QuickAddons | 37 | KF5::QuickAddons | ||
42 | ${X11_LIBRARIES} | 38 | ${X11_LIBRARIES} | ||
43 | XCB::XCB | 39 | XCB::XCB | ||
40 | PW::KWorkspace | ||||
44 | ) | 41 | ) | ||
45 | 42 | | |||
46 | if (X11_Xcursor_FOUND) | 43 | if (X11_Xcursor_FOUND) | ||
47 | target_link_libraries(kcm_cursortheme ${X11_Xcursor_LIB}) | 44 | target_link_libraries(kcm_cursortheme ${X11_Xcursor_LIB}) | ||
48 | endif () | 45 | endif () | ||
49 | if (X11_Xfixes_FOUND) | 46 | if (X11_Xfixes_FOUND) | ||
50 | target_link_libraries(kcm_cursortheme ${X11_Xfixes_LIB}) | 47 | target_link_libraries(kcm_cursortheme ${X11_Xfixes_LIB}) | ||
51 | endif () | 48 | endif () | ||
Show All 13 Lines |