From fd31aa9b05ea215e8071cf76fe21ec746204f3a3 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 3 Mar 2016 22:30:07 +0100 Subject: Added a maildir configuration controller that can edit the config in sink. The property binding only works when using actual QObject::property'ies. It doesn't work at all with Q_PROPERTY, even with a NOTIFY signal. --- accounts/maildir/CMakeLists.txt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'accounts/maildir/CMakeLists.txt') diff --git a/accounts/maildir/CMakeLists.txt b/accounts/maildir/CMakeLists.txt index 7e9894b1..d83ae0be 100644 --- a/accounts/maildir/CMakeLists.txt +++ b/accounts/maildir/CMakeLists.txt @@ -20,8 +20,21 @@ include(KDECompilerSettings) find_package(Qt5 REQUIRED NO_MODULE COMPONENTS Core Quick Test Gui) set (QT_MIN_VERSION "5.4.0") -find_package(KF5 REQUIRED COMPONENTS Package) +find_package(Sink CONFIG REQUIRED) +find_package(KF5Async CONFIG REQUIRED) +include_directories(SYSTEM ${KDE_INSTALL_FULL_INCLUDEDIR}/KF5/) + +set(SRCS + maildirsettings.cpp + maildiraccountplugin.cpp +) + +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) -- cgit v1.2.3