Changeset View
Changeset View
Standalone View
Standalone View
kcms/lookandfeel/CMakeLists.txt
Show All 9 Lines | 7 | set(kcm_lookandfeel_SRCS | |||
---|---|---|---|---|---|
10 | ../krdb/krdb.cpp | 10 | ../krdb/krdb.cpp | ||
11 | ../cursortheme/xcursor/cursortheme.cpp | 11 | ../cursortheme/xcursor/cursortheme.cpp | ||
12 | ../cursortheme/xcursor/xcursortheme.cpp | 12 | ../cursortheme/xcursor/xcursortheme.cpp | ||
13 | ) | 13 | ) | ||
14 | 14 | | |||
15 | set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) | 15 | set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml) | ||
16 | qt5_add_dbus_interface(kcm_lookandfeel_SRCS ${klauncher_xml} klauncher_iface) | 16 | qt5_add_dbus_interface(kcm_lookandfeel_SRCS ${klauncher_xml} klauncher_iface) | ||
17 | 17 | | |||
18 | kconfig_add_kcfg_files(kcm_lookandfeel_SRCS lookandfeelsettings.kcfgc GENERATE_MOC) | ||||
19 | | ||||
18 | add_library(kcm_lookandfeel MODULE ${kcm_lookandfeel_SRCS}) | 20 | add_library(kcm_lookandfeel MODULE ${kcm_lookandfeel_SRCS}) | ||
19 | 21 | | |||
20 | target_link_libraries(kcm_lookandfeel | 22 | target_link_libraries(kcm_lookandfeel | ||
21 | KF5::KIOWidgets | 23 | KF5::KIOWidgets | ||
22 | KF5::CoreAddons | 24 | KF5::CoreAddons | ||
23 | KF5::GuiAddons | 25 | KF5::GuiAddons | ||
24 | KF5::KCMUtils | 26 | KF5::KCMUtils | ||
25 | KF5::I18n | 27 | KF5::I18n | ||
Show All 17 Lines | |||||
43 | endif () | 45 | endif () | ||
44 | if (X11_Xfixes_FOUND) | 46 | if (X11_Xfixes_FOUND) | ||
45 | target_link_libraries(kcm_lookandfeel ${X11_Xfixes_LIB}) | 47 | target_link_libraries(kcm_lookandfeel ${X11_Xfixes_LIB}) | ||
46 | endif () | 48 | endif () | ||
47 | 49 | | |||
48 | kcoreaddons_desktop_to_json(kcm_lookandfeel "kcm_lookandfeel.desktop" SERVICE_TYPES kcmodule.desktop) | 50 | kcoreaddons_desktop_to_json(kcm_lookandfeel "kcm_lookandfeel.desktop" SERVICE_TYPES kcmodule.desktop) | ||
49 | 51 | | |||
50 | #this desktop file is installed only for retrocompatibility with sycoca | 52 | #this desktop file is installed only for retrocompatibility with sycoca | ||
53 | install(FILES lookandfeelsettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR}) | ||||
51 | install(FILES kcm_lookandfeel.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | 54 | install(FILES kcm_lookandfeel.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||
52 | install(TARGETS kcm_lookandfeel DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | 55 | install(TARGETS kcm_lookandfeel DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | ||
53 | install(FILES lookandfeel.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR}) | 56 | install(FILES lookandfeel.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR}) | ||
54 | 57 | | |||
55 | if(BUILD_TESTING) | 58 | if(BUILD_TESTING) | ||
56 | find_package(Qt5Test ${QT_MIN_VERSION} CONFIG REQUIRED) | 59 | find_package(Qt5Test ${QT_MIN_VERSION} CONFIG REQUIRED) | ||
57 | add_subdirectory(autotests) | 60 | add_subdirectory(autotests) | ||
58 | endif() | 61 | endif() | ||
59 | 62 | | |||
60 | kpackage_install_package(package kcm_lookandfeel kcms) | 63 | kpackage_install_package(package kcm_lookandfeel kcms) | ||
61 | 64 | | |||
62 | ###### Command line tool | 65 | ###### Command line tool | ||
63 | 66 | | |||
64 | set(lookandfeeltool_SRCS | 67 | set(lookandfeeltool_SRCS | ||
65 | lnftool.cpp | 68 | lnftool.cpp | ||
66 | # TODO: load kcm plugin instead of using code copy | 69 | # TODO: load kcm plugin instead of using code copy | ||
67 | kcm.cpp | 70 | kcm.cpp | ||
68 | ../krdb/krdb.cpp | 71 | ../krdb/krdb.cpp | ||
69 | ../cursortheme/xcursor/cursortheme.cpp | 72 | ../cursortheme/xcursor/cursortheme.cpp | ||
70 | ../cursortheme/xcursor/xcursortheme.cpp | 73 | ../cursortheme/xcursor/xcursortheme.cpp | ||
71 | ) | 74 | ) | ||
72 | 75 | | |||
73 | qt5_add_dbus_interface(lookandfeeltool_SRCS ${klauncher_xml} klauncher_iface) | 76 | qt5_add_dbus_interface(lookandfeeltool_SRCS ${klauncher_xml} klauncher_iface) | ||
74 | 77 | | |||
78 | kconfig_add_kcfg_files(lookandfeeltool_SRCS lookandfeelsettings.kcfgc GENERATE_MOC) | ||||
79 | | ||||
75 | add_executable(lookandfeeltool ${lookandfeeltool_SRCS}) | 80 | add_executable(lookandfeeltool ${lookandfeeltool_SRCS}) | ||
76 | 81 | | |||
77 | target_link_libraries(lookandfeeltool | 82 | target_link_libraries(lookandfeeltool | ||
78 | KF5::KIOWidgets | 83 | KF5::KIOWidgets | ||
79 | KF5::CoreAddons | 84 | KF5::CoreAddons | ||
80 | KF5::KCMUtils | 85 | KF5::KCMUtils | ||
81 | KF5::I18n | 86 | KF5::I18n | ||
82 | #TODO:kpackage | 87 | #TODO:kpackage | ||
Show All 25 Lines |