Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwindecoration/CMakeLists.txt
1 | # KI18N Translation Domain for this library | 1 | # KI18N Translation Domain for this library | ||
---|---|---|---|---|---|
2 | add_definitions(-DTRANSLATION_DOMAIN=\"kcm_kwindecoration\") | 2 | add_definitions(-DTRANSLATION_DOMAIN=\"kcm_kwindecoration\") | ||
3 | 3 | | |||
4 | add_subdirectory(declarative-plugin) | 4 | add_subdirectory(declarative-plugin) | ||
5 | 5 | | |||
6 | set(kcmkwindecoration_SRCS | 6 | set(kcmkwindecoration_SRCS | ||
7 | declarative-plugin/buttonsmodel.cpp | 7 | declarative-plugin/buttonsmodel.cpp | ||
8 | decorationmodel.cpp | 8 | decorationmodel.cpp | ||
9 | kcm.cpp | 9 | kcm.cpp | ||
10 | utils.cpp | 10 | utils.cpp | ||
11 | ) | 11 | ) | ||
12 | 12 | | |||
13 | kconfig_add_kcfg_files(kcmkwindecoration_SRCS kwindecorationsettings.kcfgc GENERATE_MOC) | ||||
14 | | ||||
13 | add_library(kcm_kwindecoration MODULE ${kcmkwindecoration_SRCS}) | 15 | add_library(kcm_kwindecoration MODULE ${kcmkwindecoration_SRCS}) | ||
14 | 16 | | |||
15 | target_link_libraries(kcm_kwindecoration | 17 | target_link_libraries(kcm_kwindecoration | ||
16 | KDecoration2::KDecoration | 18 | KDecoration2::KDecoration | ||
17 | KF5::I18n | 19 | KF5::I18n | ||
18 | KF5::NewStuff | 20 | KF5::NewStuff | ||
19 | KF5::QuickAddons | 21 | KF5::QuickAddons | ||
20 | Qt5::Quick | 22 | Qt5::Quick | ||
21 | ) | 23 | ) | ||
22 | 24 | | |||
23 | kcoreaddons_desktop_to_json(kcm_kwindecoration "kwindecoration.desktop" SERVICE_TYPES kcmodule.desktop) | 25 | kcoreaddons_desktop_to_json(kcm_kwindecoration "kwindecoration.desktop" SERVICE_TYPES kcmodule.desktop) | ||
24 | 26 | | |||
25 | # This desktop file is installed only for retrocompatibility with sycoca | 27 | # This desktop file is installed only for retrocompatibility with sycoca | ||
28 | install(FILES kwindecorationsettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR}) | ||||
26 | install(FILES kwindecoration.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | 29 | install(FILES kwindecoration.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||
27 | install(FILES window-decorations.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR}) | 30 | install(FILES window-decorations.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR}) | ||
28 | install(TARGETS kcm_kwindecoration DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | 31 | install(TARGETS kcm_kwindecoration DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | ||
29 | 32 | | |||
30 | kpackage_install_package(package kcm_kwindecoration kcms) | 33 | kpackage_install_package(package kcm_kwindecoration kcms) |