Changeset View
Changeset View
Standalone View
Standalone View
kcms/input/CMakeLists.txt
1 | if(NOT X11_Xinput_FOUND) | 1 | if(NOT X11_Xinput_FOUND) | ||
---|---|---|---|---|---|
2 | message(FATAL_ERROR "Xinput not found") | 2 | message(FATAL_ERROR "Xinput not found") | ||
3 | endif() | 3 | endif() | ||
4 | 4 | | |||
5 | # KI18N Translation Domain for this library | 5 | # KI18N Translation Domain for this library | ||
6 | add_definitions(-DTRANSLATION_DOMAIN=\"kcminput\") | 6 | add_definitions(-DTRANSLATION_DOMAIN=\"kcminput\") | ||
7 | 7 | | |||
8 | add_subdirectory( pics ) | 8 | add_subdirectory( misc ) | ||
9 | 9 | | |||
10 | ## Add common files here. | 10 | ## Add common files here. | ||
11 | set(kcminput_backend_SRCS | 11 | set(common_SRCS | ||
12 | mousebackend.cpp | 12 | inputbackend.cpp | ||
13 | mousesettings.cpp | 13 | ) | ||
14 | logging.cpp) | 14 | | ||
15 | set(kcminput_backend_LIBS) | 15 | include(ECMQtDeclareLoggingCategory) | ||
16 | ecm_qt_declare_logging_category(common_SRCS | ||||
17 | HEADER | ||||
18 | logging.h | ||||
19 | IDENTIFIER | ||||
20 | KCM_INPUT | ||||
21 | CATEGORY_NAME | ||||
22 | kcm_input | ||||
23 | DEFAULT_SEVERITY | ||||
24 | Critical | ||||
25 | ) | ||||
26 | | ||||
16 | include(backends/x11.cmake) | 27 | include(backends/x11.cmake) | ||
28 | include(backends/kwin_wl.cmake) | ||||
29 | | ||||
30 | ########### next target ############### | ||||
17 | 31 | | |||
32 | add_executable(kapplymousetheme | ||||
33 | kapplymousetheme.cpp | ||||
34 | ${common_SRCS} | ||||
35 | ${backend_SRCS} | ||||
36 | ) | ||||
37 | | ||||
38 | target_link_libraries(kapplymousetheme | ||||
39 | ${backend_LIBS} | ||||
40 | Qt5::Gui | ||||
41 | Qt5::DBus | ||||
42 | KF5::CoreAddons | ||||
43 | KF5::ConfigCore | ||||
44 | KF5::I18n | ||||
45 | ) | ||||
46 | | ||||
47 | install(TARGETS kapplymousetheme ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | ||||
18 | 48 | | |||
19 | ########### next target ############### | 49 | ########### next target ############### | ||
20 | 50 | | |||
21 | set(kcm_input_PART_SRCS | 51 | set(common_SRCS | ||
22 | mouse.cpp | 52 | ${common_SRCS} | ||
23 | main.cpp | 53 | plugin.cpp | ||
24 | ${kcminput_backend_SRCS} | 54 | kcm/configcontainer.cpp | ||
55 | kcm/configplugin.cpp | ||||
56 | kcm/libinput/libinput_config.cpp | ||||
57 | kcm/xlib/xlib_config.cpp | ||||
25 | ) | 58 | ) | ||
26 | 59 | | |||
27 | set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) | 60 | set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) | ||
28 | 61 | | |||
29 | ki18n_wrap_ui(kcm_input_PART_SRCS kcmmouse.ui) | 62 | ki18n_wrap_ui(common_SRCS kcm/xlib/kcmmouse.ui) | ||
30 | qt5_add_dbus_interface(kcm_input_PART_SRCS ${klauncher_xml} klauncher_iface) | 63 | qt5_add_dbus_interface(common_SRCS ${klauncher_xml} klauncher_iface) | ||
31 | 64 | | |||
32 | add_library(kcm_input MODULE ${kcm_input_PART_SRCS} ${kcminput_backend_SRCS}) | 65 | qt5_add_resources( common_SRCS kcm/resources.qrc ) | ||
66 | | ||||
67 | add_library(kcm_input MODULE | ||||
68 | ${common_SRCS} | ||||
69 | ${backend_SRCS} | ||||
70 | ) | ||||
33 | 71 | | |||
34 | target_link_libraries(kcm_input | 72 | target_link_libraries(kcm_input | ||
35 | Qt5::DBus | 73 | ${backend_LIBS} | ||
36 | KF5::KCMUtils | 74 | KF5::KCMUtils | ||
37 | KF5::I18n | 75 | KF5::I18n | ||
38 | KF5::KIOCore | 76 | KF5::KIOCore | ||
39 | KF5::KIOWidgets | 77 | KF5::KIOWidgets | ||
40 | KF5::KDELibs4Support | 78 | KF5::KDELibs4Support | ||
41 | ${kcminput_backend_LIBS} | 79 | KF5::Declarative | ||
80 | | ||||
81 | Qt5::DBus | ||||
82 | Qt5::QuickWidgets | ||||
42 | ) | 83 | ) | ||
43 | 84 | | |||
44 | install(TARGETS kcm_input DESTINATION ${KDE_INSTALL_PLUGINDIR} ) | 85 | install(TARGETS kcm_input DESTINATION ${KDE_INSTALL_PLUGINDIR} ) | ||
45 | 86 | | |||
46 | | ||||
47 | ########### install files ############### | 87 | ########### install files ############### | ||
48 | 88 | | |||
49 | install( FILES mouse.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) | 89 | install( FILES mouse.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) | ||
50 | install( FILES cursor_large_black.pcf.gz cursor_large_white.pcf.gz cursor_small_white.pcf.gz DESTINATION ${KDE_INSTALL_DATADIR}/kcminput ) | | |||
51 | |