Changeset View
Changeset View
Standalone View
Standalone View
kcms/lookandfeel/CMakeLists.txt
1 | # KI18N Translation Domain for this library | 1 | # KI18N Translation Domain for this library | ||
---|---|---|---|---|---|
2 | add_definitions(-DTRANSLATION_DOMAIN=\"kcm_lookandfeel\") | 2 | add_definitions(-DTRANSLATION_DOMAIN=\"kcm_lookandfeel\") | ||
3 | 3 | | |||
4 | if(X11_Xcursor_FOUND) | ||||
5 | set(HAVE_XCURSOR TRUE) | ||||
6 | endif() | ||||
4 | configure_file (config-kcm.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kcm.h ) | 7 | configure_file (config-kcm.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kcm.h ) | ||
5 | 8 | | |||
6 | | ||||
7 | set(kcm_lookandfeel_SRCS | 9 | set(kcm_lookandfeel_SRCS | ||
8 | kcmmain.cpp | 10 | kcmmain.cpp | ||
9 | kcm.cpp | 11 | kcm.cpp | ||
10 | ../krdb/krdb.cpp | 12 | ../krdb/krdb.cpp | ||
13 | ) | ||||
14 | | ||||
15 | if (X11_Xcursor_FOUND) | ||||
16 | set(kcm_lookandfeel_SRCS | ||||
17 | ${kcm_lookandfeel_SRCS} | ||||
11 | ../cursortheme/xcursor/cursortheme.cpp | 18 | ../cursortheme/xcursor/cursortheme.cpp | ||
12 | ../cursortheme/xcursor/xcursortheme.cpp | 19 | ../cursortheme/xcursor/xcursortheme.cpp | ||
13 | ) | 20 | ) | ||
21 | endif () | ||||
14 | 22 | | |||
15 | set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) | 23 | set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) | ||
16 | qt5_add_dbus_interface(kcm_lookandfeel_SRCS ${klauncher_xml} klauncher_iface) | 24 | qt5_add_dbus_interface(kcm_lookandfeel_SRCS ${klauncher_xml} klauncher_iface) | ||
17 | 25 | | |||
18 | kconfig_add_kcfg_files(kcm_lookandfeel_SRCS lookandfeelsettings.kcfgc GENERATE_MOC) | 26 | kconfig_add_kcfg_files(kcm_lookandfeel_SRCS lookandfeelsettings.kcfgc GENERATE_MOC) | ||
19 | 27 | | |||
20 | add_library(kcm_lookandfeel MODULE ${kcm_lookandfeel_SRCS}) | 28 | add_library(kcm_lookandfeel MODULE ${kcm_lookandfeel_SRCS}) | ||
21 | 29 | | |||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
64 | 72 | | |||
65 | ###### Command line tool | 73 | ###### Command line tool | ||
66 | 74 | | |||
67 | set(lookandfeeltool_SRCS | 75 | set(lookandfeeltool_SRCS | ||
68 | lnftool.cpp | 76 | lnftool.cpp | ||
69 | # TODO: load kcm plugin instead of using code copy | 77 | # TODO: load kcm plugin instead of using code copy | ||
70 | kcm.cpp | 78 | kcm.cpp | ||
71 | ../krdb/krdb.cpp | 79 | ../krdb/krdb.cpp | ||
80 | ) | ||||
81 | | ||||
82 | if (X11_Xcursor_FOUND) | ||||
83 | set(lookandfeeltool_SRCS | ||||
84 | ${lookandfeeltool_SRCS} | ||||
72 | ../cursortheme/xcursor/cursortheme.cpp | 85 | ../cursortheme/xcursor/cursortheme.cpp | ||
73 | ../cursortheme/xcursor/xcursortheme.cpp | 86 | ../cursortheme/xcursor/xcursortheme.cpp | ||
74 | ) | 87 | ) | ||
88 | endif () | ||||
75 | 89 | | |||
76 | qt5_add_dbus_interface(lookandfeeltool_SRCS ${klauncher_xml} klauncher_iface) | 90 | qt5_add_dbus_interface(lookandfeeltool_SRCS ${klauncher_xml} klauncher_iface) | ||
77 | 91 | | |||
78 | kconfig_add_kcfg_files(lookandfeeltool_SRCS lookandfeelsettings.kcfgc GENERATE_MOC) | 92 | kconfig_add_kcfg_files(lookandfeeltool_SRCS lookandfeelsettings.kcfgc GENERATE_MOC) | ||
79 | 93 | | |||
80 | add_executable(lookandfeeltool ${lookandfeeltool_SRCS}) | 94 | add_executable(lookandfeeltool ${lookandfeeltool_SRCS}) | ||
81 | 95 | | |||
82 | target_link_libraries(lookandfeeltool | 96 | target_link_libraries(lookandfeeltool | ||
Show All 30 Lines |