Changeset View
Changeset View
Standalone View
Standalone View
kcms/colors/CMakeLists.txt
1 | # KI18N Translation Domain for this library | 1 | # KI18N Translation Domain for this library | ||
---|---|---|---|---|---|
2 | add_definitions(-DTRANSLATION_DOMAIN=\"kcm_colors\") | 2 | add_definitions(-DTRANSLATION_DOMAIN=\"kcm_colors\") | ||
3 | 3 | | |||
4 | set(kcm_colors_SRCS | 4 | set(kcm_colors_SRCS | ||
5 | ../krdb/krdb.cpp | 5 | ../krdb/krdb.cpp | ||
6 | colors.cpp | 6 | colors.cpp | ||
7 | colorsmodel.cpp | 7 | colorsmodel.cpp | ||
8 | filterproxymodel.cpp | 8 | filterproxymodel.cpp | ||
9 | ) | 9 | ) | ||
10 | 10 | | |||
11 | # needed for krdb | 11 | # needed for krdb | ||
12 | qt5_add_dbus_interface(kcm_colors_SRCS ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml klauncher_iface) | 12 | qt5_add_dbus_interface(kcm_colors_SRCS ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml klauncher_iface) | ||
13 | 13 | | |||
14 | kconfig_add_kcfg_files(kcm_colors_SRCS colorssettings.kcfgc GENERATE_MOC) | ||||
15 | | ||||
14 | add_library(kcm_colors MODULE ${kcm_colors_SRCS}) | 16 | add_library(kcm_colors MODULE ${kcm_colors_SRCS}) | ||
15 | target_link_libraries(kcm_colors | 17 | target_link_libraries(kcm_colors | ||
16 | Qt5::DBus | 18 | Qt5::DBus | ||
17 | KF5::KCMUtils | 19 | KF5::KCMUtils | ||
18 | KF5::CoreAddons | 20 | KF5::CoreAddons | ||
19 | KF5::Declarative | 21 | KF5::Declarative | ||
20 | KF5::GuiAddons | 22 | KF5::GuiAddons | ||
21 | KF5::I18n | 23 | KF5::I18n | ||
22 | KF5::KIOCore | 24 | KF5::KIOCore | ||
23 | KF5::KIOWidgets | 25 | KF5::KIOWidgets | ||
24 | KF5::NewStuff | 26 | KF5::NewStuff | ||
25 | KF5::QuickAddons | 27 | KF5::QuickAddons | ||
26 | KF5::WindowSystem | 28 | KF5::WindowSystem | ||
27 | ) | 29 | ) | ||
28 | 30 | | |||
29 | if(X11_FOUND) | 31 | if(X11_FOUND) | ||
30 | target_link_libraries(kcm_colors ${X11_LIBRARIES} Qt5::X11Extras) | 32 | target_link_libraries(kcm_colors ${X11_LIBRARIES} Qt5::X11Extras) | ||
31 | endif() | 33 | endif() | ||
32 | 34 | | |||
33 | kcoreaddons_desktop_to_json(kcm_colors "kcm_colors.desktop") | 35 | kcoreaddons_desktop_to_json(kcm_colors "kcm_colors.desktop") | ||
34 | 36 | | |||
37 | install(FILES colorssettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR}) | ||||
35 | install(FILES kcm_colors.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | 38 | install(FILES kcm_colors.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||
36 | install(TARGETS kcm_colors DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | 39 | install(TARGETS kcm_colors DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | ||
37 | install(FILES colorschemes.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR}) | 40 | install(FILES colorschemes.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR}) | ||
38 | 41 | | |||
39 | kpackage_install_package(package kcm_colors kcms) | 42 | kpackage_install_package(package kcm_colors kcms) | ||
40 | 43 | | |||
41 | add_subdirectory(editor) | 44 | add_subdirectory(editor) |