From ab7b805da1e9b7dcb767c3375b753e2efe43de18 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Thu, 29 Jul 2021 16:00:29 +0200 Subject: [PATCH] Use KPackage macro for installing plasmoid The macro does some extra stuff under the hood, like converting the metadata.desktop to json, which makes loading the plasmoid a bit faster --- CMakeLists.txt | 1 + plasmoid/CMakeLists.txt | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aec6fa4b8..dbc80325f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,6 +71,7 @@ else() ) if(UNIX AND NOT APPLE) + find_package(KF5Package REQUIRED) find_package(KF5PulseAudioQt) endif() diff --git a/plasmoid/CMakeLists.txt b/plasmoid/CMakeLists.txt index 0eca35cb5..9ffe1e0b9 100644 --- a/plasmoid/CMakeLists.txt +++ b/plasmoid/CMakeLists.txt @@ -1,5 +1,4 @@ -install(DIRECTORY package/ - DESTINATION ${DATA_INSTALL_DIR}/plasma/plasmoids/org.kde.kdeconnect) +kpackage_install_package(package org.kde.kdeconnect plasmoids plasma NO_DEPRECATED_WARNING) install(FILES package/metadata.desktop DESTINATION ${SERVICES_INSTALL_DIR}