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=\"kcmkwindecoration\") | 2 | add_definitions(-DTRANSLATION_DOMAIN=\"kcmkwindecoration\") | ||
3 | 3 | | |||
4 | add_subdirectory(declarative-plugin) | 4 | add_subdirectory(declarative-plugin) | ||
5 | 5 | | |||
6 | set(kcm_kwindecoration_PART_SRCS | 6 | set(kcmkwindecoration_SRCS | ||
7 | kcm.cpp | 7 | kcm.cpp | ||
8 | utils.cpp | ||||
8 | decorationmodel.cpp | 9 | decorationmodel.cpp | ||
9 | declarative-plugin/buttonsmodel.cpp | 10 | declarative-plugin/buttonsmodel.cpp | ||
10 | ) | 11 | ) | ||
11 | 12 | | |||
12 | ki18n_wrap_ui(kcm_kwindecoration_PART_SRCS | 13 | add_library(kcm_kwindecoration MODULE ${kcmkwindecoration_SRCS}) | ||
13 | kcm.ui | | |||
14 | ) | | |||
15 | 14 | | |||
16 | add_library(kcm_kwindecoration MODULE ${kcm_kwindecoration_PART_SRCS}) | | |||
17 | target_link_libraries(kcm_kwindecoration | 15 | target_link_libraries(kcm_kwindecoration | ||
18 | KDecoration2::KDecoration | 16 | KDecoration2::KDecoration | ||
19 | Qt5::DBus | | |||
20 | Qt5::Quick | | |||
21 | Qt5::QuickWidgets | | |||
22 | Qt5::UiTools | | |||
23 | KF5::Completion | | |||
24 | KF5::ConfigWidgets | | |||
25 | KF5::Declarative | | |||
26 | KF5::I18n | 17 | KF5::I18n | ||
18 | KF5::QuickAddons | ||||
27 | KF5::NewStuff | 19 | KF5::NewStuff | ||
28 | KF5::WindowSystem | 20 | Qt5::Quick | ||
29 | KF5::Service | | |||
30 | ) | 21 | ) | ||
31 | install(TARGETS kcm_kwindecoration DESTINATION ${PLUGIN_INSTALL_DIR} ) | | |||
32 | 22 | | |||
33 | ########### install files ############### | 23 | kcoreaddons_desktop_to_json(kcm_kwindecoration "kwindecoration.desktop" SERVICE_TYPES kcmodule.desktop) | ||
24 | | ||||
25 | # This desktop file is installed only for retrocompatibility with sycoca | ||||
26 | install(FILES kwindecoration.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||||
27 | install(FILES window-decorations.knsrc DESTINATION ${KDE_INSTALL_CONFDIR}) | ||||
28 | install(TARGETS kcm_kwindecoration DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | ||||
34 | 29 | | |||
35 | install( FILES kwindecoration.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) | 30 | kpackage_install_package(package kcm_kwindecoration kcms) | ||
36 | install( FILES | | |||
37 | qml/main.qml | | |||
38 | qml/Buttons.qml | | |||
39 | qml/ButtonGroup.qml | | |||
40 | qml/Previews.qml | | |||
41 | DESTINATION ${DATA_INSTALL_DIR}/kwin/kcm_kwindecoration) | |