From 9bfadc71a4fb694ae3946711d04acdfe009264c0 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 10 Mar 2016 11:57:08 +0100 Subject: A factory to load account plugins. --- accounts/maildir/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'accounts/maildir/CMakeLists.txt') diff --git a/accounts/maildir/CMakeLists.txt b/accounts/maildir/CMakeLists.txt index d83ae0be..5307c5b0 100644 --- a/accounts/maildir/CMakeLists.txt +++ b/accounts/maildir/CMakeLists.txt @@ -22,6 +22,7 @@ find_package(Qt5 REQUIRED NO_MODULE COMPONENTS Core Quick Test Gui) set (QT_MIN_VERSION "5.4.0") find_package(Sink CONFIG REQUIRED) find_package(KF5Async CONFIG REQUIRED) +find_package(KF5 REQUIRED COMPONENTS Package) include_directories(SYSTEM ${KDE_INSTALL_FULL_INCLUDEDIR}/KF5/) @@ -34,7 +35,7 @@ add_library(maildiraccountplugin SHARED ${SRCS}) qt5_use_modules(maildiraccountplugin Core Quick Qml) target_link_libraries(maildiraccountplugin sink) -install(TARGETS maildiraccountplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/kube/accounts/maildir) -install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kde/kube/accounts/maildir) -install(FILES package/contents/ui/MaildirAccountSettings.qml DESTINATION ${QML_INSTALL_DIR}/org/kde/kube/accounts/maildir) +kpackage_install_package(package org.kube.accounts.maildir "genericqml") +install(TARGETS maildiraccountplugin DESTINATION ${QML_INSTALL_DIR}/org/kube/accounts/maildir) +install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kube/accounts/maildir) -- cgit v1.2.3