From 3324400672948d9d375ebbb25bbfbc133e159764 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Thu, 7 Apr 2022 18:16:12 +0200 Subject: [PATCH] Port KWin scripts KCM to new install location Task: https://phabricator.kde.org/T14517 --- src/kcmkwin/kwinscripts/CMakeLists.txt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/kcmkwin/kwinscripts/CMakeLists.txt b/src/kcmkwin/kwinscripts/CMakeLists.txt index 1e27203f61..3be771084f 100644 --- a/src/kcmkwin/kwinscripts/CMakeLists.txt +++ b/src/kcmkwin/kwinscripts/CMakeLists.txt @@ -1,16 +1,13 @@ # KI18N Translation Domain for this library add_definitions(-DTRANSLATION_DOMAIN=\"kcm-kwin-scripts\") -include_directories(${CMAKE_CURRENT_BINARY_DIR}) +kcoreaddons_add_plugin(kcm_kwin_scripts INSTALL_NAMESPACE plasma/kcms/systemsettings) -set(kcm_SRCS +target_sources(kcm_kwin_scripts PRIVATE module.cpp kwinscriptsdata.cpp ) -add_library(kcm_kwin_scripts MODULE ${kcm_SRCS}) -kcoreaddons_desktop_to_json(kcm_kwin_scripts kwinscripts.desktop) - target_link_libraries(kcm_kwin_scripts Qt::DBus @@ -24,6 +21,5 @@ target_link_libraries(kcm_kwin_scripts ) kpackage_install_package(package kcm_kwin_scripts kcms) -install(TARGETS kcm_kwin_scripts DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) -install(FILES kwinscripts.desktop DESTINATION ${KDE_INSTALL_KSERVICESDIR}) +install(FILES kwinscripts.desktop DESTINATION ${KDE_INSTALL_APPDIR}) install(FILES kwinscripts.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR})