Commit dcda6b3c authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Add support for generating qmltypes file

parent 3b7d51dc
Pipeline #61310 passed with stage
in 4 minutes and 34 seconds
...@@ -34,6 +34,7 @@ include(ECMInstallIcons) ...@@ -34,6 +34,7 @@ include(ECMInstallIcons)
include(ECMQtDeclareLoggingCategory) include(ECMQtDeclareLoggingCategory)
include(FeatureSummary) include(FeatureSummary)
include(GenerateExportHeader) include(GenerateExportHeader)
include(ECMGenerateQmlTypes)
if (NOT SAILFISHOS) if (NOT SAILFISHOS)
include(ECMQMLModules) include(ECMQMLModules)
endif() endif()
......
...@@ -13,6 +13,8 @@ target_link_libraries(kdeconnectdeclarativeplugin ...@@ -13,6 +13,8 @@ target_link_libraries(kdeconnectdeclarativeplugin
install(TARGETS kdeconnectdeclarativeplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/kdeconnect) install(TARGETS kdeconnectdeclarativeplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/kdeconnect)
install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kde/kdeconnect) install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kde/kdeconnect)
ecm_generate_qmltypes(org.kde.kdeconnect 1.0 DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kdeconnect)
# So qml apps using this plugin can be run from build/bin directory # So qml apps using this plugin can be run from build/bin directory
add_custom_target(copy_to_build_dir_bin) add_custom_target(copy_to_build_dir_bin)
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bin/org/kde/kdeconnect) file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bin/org/kde/kdeconnect)
......
This diff is collapsed.
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