From 40b14a8649f9063660bb9ad261f5a5e39f063aba Mon Sep 17 00:00:00 2001 From: EndrII <EndrIIMail@gmail.com> Date: Tue, 8 Feb 2022 18:58:38 +0300 Subject: [PATCH] fix static build for ios --- QuasarAppCITargets.cmake | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/QuasarAppCITargets.cmake b/QuasarAppCITargets.cmake index cd4445e..b23e587 100644 --- a/QuasarAppCITargets.cmake +++ b/QuasarAppCITargets.cmake @@ -450,6 +450,31 @@ function(addDeployIPA name bundle_id targetDir version appleDir) VERBOSE ) + + if (${QT_VERSION_MAJOR} EQUAL 5) + + if("${qmlRoot}" STREQUAL "") + set(qmlRoot ${CMAKE_SOURCE_DIR}) + endif() + + qt_generate_plugin_import(${name} VERBOSE) + + # EXTRA_PLUGIN are the one required by plugin loaded by qt_generate_plugin_import + # It's not automatic yet :( All this workflow might change in future version of qt + # with better and better cmake support + qt_generate_qml_plugin_import(${name} + QML_SRC ${qmlRoot} + EXTRA_PLUGIN + QtQuickVirtualKeyboardPlugin + QtQuickVirtualKeyboardSettingsPlugin + QtQuickVirtualKeyboardStylesPlugin + QmlFolderListModelPlugin + QQuickLayoutsPlugin + VERBOSE + ) + endif() + + ADD_CUSTOM_TARGET( deployIPA${name} COMMAND ${CMAKE_COMMAND} -E copy *.ipa ${targetDir}