Changeset View
Changeset View
Standalone View
Standalone View
kcms/keyboard/daemon/CMakeLists.txt
- This file was added.
1 | | ||||
---|---|---|---|---|---|
2 | ### kded daemon ### | ||||
3 | | ||||
4 | option(HAVE_XINPUT "X11 XInput" OFF) | ||||
5 | option(NEW_GEOMETRY "Keyboard geometry preview" OFF) | ||||
6 | | ||||
7 | if (X11_Xinput_FOUND) | ||||
8 | set(HAVE_XINPUT ON) | ||||
9 | else() | ||||
10 | message(STATUS "X11 XInput is not found, either is required to keep layouts with keyboard hotplugging") | ||||
11 | endif() | ||||
12 | | ||||
13 | set( kded_keyboard_SRCS | ||||
14 | keyboard_daemon.cpp | ||||
15 | x11_helper.cpp | ||||
16 | xinput_helper.cpp | ||||
17 | xkb_helper.cpp | ||||
18 | keyboard_hardware.cpp | ||||
19 | bindings.cpp | ||||
20 | ) | ||||
21 | | ||||
22 | if ("${CMAKE_BUILD_TYPE}" MATCHES "Debug") | ||||
23 | set(logging_severity Debug) | ||||
24 | else() | ||||
25 | set(logging_severity Warning) | ||||
26 | endif() | ||||
27 | | ||||
28 | ecm_qt_declare_logging_category(kded_keyboard_SRCS | ||||
29 | HEADER debug.h | ||||
30 | IDENTIFIER KCM_KEYBOARD | ||||
31 | CATEGORY_NAME org.kde.kcm_keyboard | ||||
32 | DEFAULT_SEVERITY ${logging_severity}) | ||||
33 | | ||||
34 | | ||||
35 | add_library(kded_keyboard MODULE ${kded_keyboard_SRCS}) | ||||
36 | set_target_properties(kded_keyboard PROPERTIES OUTPUT_NAME keyboard) | ||||
37 | kcoreaddons_desktop_to_json(kded_keyboard keyboard.desktop SERVICE_TYPES kdedmodule.desktop) | ||||
38 | | ||||
39 | target_include_directories(kded_keyboard PRIVATE | ||||
40 | ${CMAKE_CURRENT_BINARY_DIR}) | ||||
41 | | ||||
42 | target_link_libraries(kded_keyboard | ||||
43 | Qt5::Concurrent | ||||
44 | Qt5::Widgets | ||||
45 | Qt5::X11Extras | ||||
46 | Qt5::Xml | ||||
47 | KF5::ConfigCore | ||||
48 | KF5::CoreAddons | ||||
49 | KF5::DBusAddons | ||||
50 | KF5::GlobalAccel | ||||
51 | KF5::I18n | ||||
52 | KF5::Notifications | ||||
53 | KF5::Service | ||||
54 | KF5::WindowSystem | ||||
55 | KF5::Plasma | ||||
56 | KF5::XmlGui | ||||
57 | KF5::GuiAddons | ||||
58 | KF5::IconThemes | ||||
59 | | ||||
60 | kcm_keyboard_layoutmodel | ||||
61 | ) | ||||
62 | | ||||
63 | if (HAVE_XINPUT) | ||||
64 | target_link_libraries(kded_keyboard ${X11_Xinput_LIB}) | ||||
65 | endif() | ||||
66 | | ||||
67 | if (HAVE_UDEV) | ||||
68 | target_link_libraries(kded_keyboard ${UDEV_LIBS}) | ||||
69 | endif() | ||||
70 | | ||||
71 | install( TARGETS kded_keyboard DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kded ) | ||||
72 | | ||||
73 | configure_file(../config-keyboard.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-keyboard.h) |