diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0000000..0000000 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -7,6 +7,8 @@ OPTION (ENABLE_CHECK_VERSION "Check for version updates" ON) OPTION (ENABLE_TELEMETRY "Enable sending telemetry" ON) OPTION (BUILD_EMBEDDED "Build for Embedded Imager" OFF) OPTION (BUILD_CLI_ONLY "Build CLI-only version without GUI components" OFF) +option(IMAGER_BUNDLE_QT "Bundle Qt frameworks, plugins, and QML imports in the macOS app" ON) + # We use FetchContent_Populate() instead of FetchContent_MakeAvailable() to allow EXCLUDE_FROM_ALL # This prevents the dependencies from being built by default, which is our desired behavior diff --git a/src/mac/PlatformPackaging.cmake b/src/mac/PlatformPackaging.cmake index 0000000..0000000 100644 --- a/src/mac/PlatformPackaging.cmake +++ b/src/mac/PlatformPackaging.cmake @@ -75,6 +75,7 @@ add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMENT "Installing custom Info.plist" ) +if(IMAGER_BUNDLE_QT) find_program(MACDEPLOYQT "macdeployqt" PATHS "${Qt6_ROOT}/bin") if (NOT MACDEPLOYQT) message(FATAL_ERROR "Unable to locate macdeployqt in ${Qt6_ROOT}/bin - ensure Qt was built with tools") @@ -189,3 +190,4 @@ add_custom_command(TARGET ${PROJECT_NAME} +endif() # Install pre-compiled icon assets for dark mode + Liquid Glass support (macOS Tahoe+) # These were compiled from app_icon_macos.icon using Xcode's actool via a helper project # The pre-compiled Assets.car properly contains all appearance variants (light/dark/tinted)