diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-09-23 16:55:11 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-09-30 22:24:01 +0200 |
commit | 9381968159e63982f8cbcfa1ded8bf1d685d92f0 (patch) | |
tree | 834948e682e7eec616196c750ccc9327a7392f51 | |
parent | 1248d4a65b3748e97c188c5e23a2b80cefdf1fc7 (diff) |
CMake: Fix textballoon example when using a shared Qt on macOS
Copy the qml plugin into the macOS app bundle just like we do for the
examples that use the 'shared' project using the new
add_qml_module_to_macos_app_bundle helper function.
Amends 79cae5f6522bc259caa27b98031bfe84ef936744
Fixes: QTBUG-96805
Change-Id: Ib22131a15f0cd06a7888ec991f5ec9f79045d202
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
(cherry picked from commit 73d8a2c01667d1c1ac11d5bf0121b3a144ceb5f1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | examples/quick/customitems/painteditem/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/quick/customitems/painteditem/CMakeLists.txt b/examples/quick/customitems/painteditem/CMakeLists.txt index db2a02b25a..8299de4882 100644 --- a/examples/quick/customitems/painteditem/CMakeLists.txt +++ b/examples/quick/customitems/painteditem/CMakeLists.txt @@ -36,3 +36,11 @@ install(TARGETS painteditemexample BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" ) + +include(../../shared/QtBundleQmlModuleForMacOS.cmake) + +set(app_target "painteditemexample") +set(qml_plugin_target "qmltextballoon") +set(qml_module_uri "TextBalloon") +add_qml_module_to_macos_app_bundle( + "${app_target}" "${qml_plugin_target}" "${qml_module_uri}") |