From 9381968159e63982f8cbcfa1ded8bf1d685d92f0 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 23 Sep 2021 16:55:11 +0200 Subject: 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 Reviewed-by: Fabian Kosmale Reviewed-by: Qt CI Bot (cherry picked from commit 73d8a2c01667d1c1ac11d5bf0121b3a144ceb5f1) Reviewed-by: Qt Cherry-pick Bot --- examples/quick/customitems/painteditem/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'examples') 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}") -- cgit v1.2.3