Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwindesktop/CMakeLists.txt
| 1 | include(ECMQMLModules) | ||||
|---|---|---|---|---|---|
| 2 | ecm_find_qmlmodule(org.kde.plasma.core 2.0) | ||||
| 1 | 3 | | |||
| 2 | ########### next target ############### | 4 | # KI18N Translation Domain for this library. | ||
| 3 | # KI18N Translation Domain for this library | 5 | add_definitions(-DTRANSLATION_DOMAIN=\"kcm_kwin_virtualdesktops\") | ||
| 4 | add_definitions(-DTRANSLATION_DOMAIN=\"kcm_kwindesktop\") | | |||
| 5 | 6 | | |||
| 6 | include_directories(${KWIN_SOURCE_DIR}/effects) | 7 | ########### next target ############### | ||
| 7 | 8 | | |||
| 8 | set(kcm_kwindesktop_PART_SRCS main.cpp desktopnameswidget.cpp) | 9 | set(kcm_kwin_virtualdesktops_PART_SRCS virtualdesktops.cpp desktopsmodel.cpp ../../virtualdesktopsdbustypes.cpp) | ||
| 9 | ki18n_wrap_ui(kcm_kwindesktop_PART_SRCS main.ui) | | |||
| 10 | qt5_add_dbus_interface( kcm_kwindesktop_PART_SRCS | | |||
| 11 | ${KWIN_SOURCE_DIR}/org.kde.kwin.Effects.xml kwin_effects_interface) | | |||
| 12 | 10 | | |||
| 13 | add_library(kcm_kwindesktop MODULE ${kcm_kwindesktop_PART_SRCS}) | 11 | add_library(kcm_kwin_virtualdesktops MODULE ${kcm_kwin_virtualdesktops_PART_SRCS}) | ||
| 14 | 12 | | |||
| 15 | target_link_libraries(kcm_kwindesktop | 13 | target_link_libraries(kcm_kwin_virtualdesktops | ||
| 16 | Qt5::X11Extras | 14 | Qt5::DBus | ||
| 17 | KF5::KCMUtils | | |||
| 18 | KF5::Completion | | |||
| 19 | KF5::GlobalAccel | | |||
| 20 | KF5::I18n | 15 | KF5::I18n | ||
| 21 | KF5::Package | 16 | KF5::KCMUtils | ||
| 22 | KF5::WindowSystem | 17 | KF5::QuickAddons | ||
| 23 | KF5::XmlGui | | |||
| 24 | ${X11_LIBRARIES} | | |||
| 25 | kwin4_effect_builtins | | |||
| 26 | ) | 18 | ) | ||
| 27 | 19 | | |||
| 28 | install(TARGETS kcm_kwindesktop DESTINATION ${PLUGIN_INSTALL_DIR} ) | 20 | kcoreaddons_desktop_to_json(kcm_kwin_virtualdesktops "kcm_kwin_virtualdesktops.desktop") | ||
| 29 | | ||||
| 30 | 21 | | |||
| 31 | ########### install files ############### | 22 | ########### install files ############### | ||
| 32 | install( FILES desktop.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) | 23 | | ||
| 24 | install(TARGETS kcm_kwin_virtualdesktops DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | ||||
| 25 | install(FILES kcm_kwin_virtualdesktops.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||||
| 26 | kpackage_install_package(package kcm_kwin_virtualdesktops kcms) | ||||
| 33 | 27 | | |||