Changeset View
Changeset View
Standalone View
Standalone View
kcms/mouse/CMakeLists.txt
- This file was moved from 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=\"kcmmouse\") | ||
7 | 7 | | |||
8 | add_subdirectory( misc ) | 8 | add_subdirectory( misc ) | ||
9 | 9 | | |||
10 | ## Add common files here. | 10 | ## Add common files here. | ||
11 | set(common_SRCS | 11 | set(common_SRCS | ||
12 | inputbackend.cpp | 12 | inputbackend.cpp | ||
13 | ) | 13 | ) | ||
14 | 14 | | |||
15 | include(ECMQtDeclareLoggingCategory) | 15 | include(ECMQtDeclareLoggingCategory) | ||
16 | ecm_qt_declare_logging_category(common_SRCS | 16 | ecm_qt_declare_logging_category(common_SRCS | ||
17 | HEADER | 17 | HEADER | ||
18 | logging.h | 18 | logging.h | ||
19 | IDENTIFIER | 19 | IDENTIFIER | ||
20 | KCM_INPUT | 20 | KCM_MOUSE | ||
21 | CATEGORY_NAME | 21 | CATEGORY_NAME | ||
22 | kcm_input | 22 | kcm_mouse | ||
23 | DEFAULT_SEVERITY | 23 | DEFAULT_SEVERITY | ||
24 | Critical | 24 | Critical | ||
25 | ) | 25 | ) | ||
26 | 26 | | |||
27 | set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) | 27 | set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) | ||
28 | qt5_add_dbus_interface(common_SRCS ${klauncher_xml} klauncher_iface) | 28 | qt5_add_dbus_interface(common_SRCS ${klauncher_xml} klauncher_iface) | ||
29 | 29 | | |||
30 | include(backends/x11.cmake) | 30 | include(backends/x11.cmake) | ||
Show All 28 Lines | 54 | set(common_SRCS | |||
59 | kcm/libinput/libinput_config.cpp | 59 | kcm/libinput/libinput_config.cpp | ||
60 | kcm/xlib/xlib_config.cpp | 60 | kcm/xlib/xlib_config.cpp | ||
61 | ) | 61 | ) | ||
62 | 62 | | |||
63 | ki18n_wrap_ui(common_SRCS kcm/xlib/kcmmouse.ui) | 63 | ki18n_wrap_ui(common_SRCS kcm/xlib/kcmmouse.ui) | ||
64 | 64 | | |||
65 | qt5_add_resources( common_SRCS kcm/resources.qrc ) | 65 | qt5_add_resources( common_SRCS kcm/resources.qrc ) | ||
66 | 66 | | |||
67 | add_library(kcm_input MODULE | 67 | add_library(kcm_mouse MODULE | ||
68 | ${common_SRCS} | 68 | ${common_SRCS} | ||
69 | ${backend_SRCS} | 69 | ${backend_SRCS} | ||
70 | ) | 70 | ) | ||
71 | 71 | | |||
72 | target_link_libraries(kcm_input | 72 | target_link_libraries(kcm_mouse | ||
73 | ${backend_LIBS} | 73 | ${backend_LIBS} | ||
74 | KF5::KCMUtils | 74 | KF5::KCMUtils | ||
75 | KF5::I18n | 75 | KF5::I18n | ||
76 | KF5::KIOCore | 76 | KF5::KIOCore | ||
77 | KF5::KIOWidgets | 77 | KF5::KIOWidgets | ||
78 | KF5::KDELibs4Support | 78 | KF5::KDELibs4Support | ||
79 | KF5::Declarative | 79 | KF5::Declarative | ||
80 | 80 | | |||
81 | Qt5::DBus | 81 | Qt5::DBus | ||
82 | Qt5::QuickWidgets | 82 | Qt5::QuickWidgets | ||
83 | ) | 83 | ) | ||
84 | 84 | | |||
85 | install(TARGETS kcm_input DESTINATION ${KDE_INSTALL_PLUGINDIR} ) | 85 | install(TARGETS kcm_mouse DESTINATION ${KDE_INSTALL_PLUGINDIR} ) | ||
86 | 86 | | |||
87 | ########### install files ############### | 87 | ########### install files ############### | ||
88 | 88 | | |||
89 | install( FILES mouse.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) | 89 | install( FILES mouse.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) |