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}