mirror of
https://github.com/QuasarApp/CMake.git
synced 2025-04-26 09:44:41 +00:00
fix static build for ios
This commit is contained in:
parent
d49e7dac01
commit
40b14a8649
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user