Commit 462d8c41 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port to ecm_add_qml_module

parent 2e8472e1
Pipeline #139421 passed with stage
in 1 minute and 13 seconds
......@@ -8,7 +8,7 @@ set(KACCOUNTS_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSIO
project(KAccounts LANGUAGES CXX VERSION ${KACCOUNTS_VERSION})
set(QT_REQUIRED_VERSION "5.15.0")
set(KF5_MIN_VERSION "5.85.0")
set(KF5_MIN_VERSION "5.91.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
......@@ -25,6 +25,7 @@ include(KDEGitCommitHooks)
include(CMakePackageConfigHelpers)
include(GenerateExportHeader)
include(FeatureSummary)
include(ECMQmlModule)
set(KACCOUNTS_SOVERSION "2")
set(ACCOUNTSQT_DEP_VERSION "1.13")
......
add_library(kaccountsdeclarativeplugin SHARED kaccountsdeclarativeplugin.cpp)
ecm_add_qml_module(kaccountsdeclarativeplugin URI "org.kde.kaccounts" VERSION 1.2)
target_sources(kaccountsdeclarativeplugin PRIVATE kaccountsdeclarativeplugin.cpp)
target_link_libraries(kaccountsdeclarativeplugin Qt5::Qml
KF5::I18n
kaccounts
)
install(TARGETS kaccountsdeclarativeplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kaccounts)
install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kaccounts)
ecm_finalize_qml_module(kaccountsdeclarativeplugin DESTINATION ${KDE_INSTALL_QMLDIR})
module org.kde.kaccounts
plugin kaccountsdeclarativeplugin
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment