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) | | |||
13 | | ||||
14 | kconfig_add_kcfg_files(kcm_colors_SRCS colorssettings.kcfgc GENERATE_MOC) | 12 | kconfig_add_kcfg_files(kcm_colors_SRCS colorssettings.kcfgc GENERATE_MOC) | ||
15 | 13 | | |||
16 | add_library(kcm_colors MODULE ${kcm_colors_SRCS}) | 14 | add_library(kcm_colors MODULE ${kcm_colors_SRCS}) | ||
17 | target_link_libraries(kcm_colors | 15 | target_link_libraries(kcm_colors | ||
18 | Qt5::DBus | 16 | Qt5::DBus | ||
19 | KF5::KCMUtils | 17 | KF5::KCMUtils | ||
20 | KF5::CoreAddons | 18 | KF5::CoreAddons | ||
21 | KF5::Declarative | 19 | KF5::Declarative | ||
22 | KF5::GuiAddons | 20 | KF5::GuiAddons | ||
23 | KF5::I18n | 21 | KF5::I18n | ||
24 | KF5::KIOCore | 22 | KF5::KIOCore | ||
25 | KF5::KIOWidgets | 23 | KF5::KIOWidgets | ||
26 | KF5::NewStuffCore | 24 | KF5::NewStuffCore | ||
27 | KF5::QuickAddons | 25 | KF5::QuickAddons | ||
28 | KF5::WindowSystem | 26 | KF5::WindowSystem | ||
27 | PW::KWorkspace | ||||
29 | ) | 28 | ) | ||
30 | 29 | | |||
31 | if(X11_FOUND) | 30 | if(X11_FOUND) | ||
32 | target_link_libraries(kcm_colors ${X11_LIBRARIES} Qt5::X11Extras) | 31 | target_link_libraries(kcm_colors ${X11_LIBRARIES} Qt5::X11Extras) | ||
33 | endif() | 32 | endif() | ||
34 | 33 | | |||
35 | kcoreaddons_desktop_to_json(kcm_colors "kcm_colors.desktop") | 34 | kcoreaddons_desktop_to_json(kcm_colors "kcm_colors.desktop") | ||
36 | 35 | | |||
37 | install(FILES colorssettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR}) | 36 | install(FILES colorssettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR}) | ||
38 | install(FILES kcm_colors.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | 37 | install(FILES kcm_colors.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||
39 | install(TARGETS kcm_colors DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | 38 | install(TARGETS kcm_colors DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | ||
40 | install(FILES colorschemes.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR}) | 39 | install(FILES colorschemes.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR}) | ||
41 | 40 | | |||
42 | kpackage_install_package(package kcm_colors kcms) | 41 | kpackage_install_package(package kcm_colors kcms) | ||
43 | 42 | | |||
44 | add_subdirectory(editor) | 43 | add_subdirectory(editor) |