]> Creatis software - creaImageIO.git/commitdiff
#3339 Bundle bug in MacOS Tahoe vtk9itk5wx3-macos
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Mon, 23 Nov 2026 13:00:38 +0000 (14:00 +0100)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Mon, 23 Nov 2026 13:00:38 +0000 (14:00 +0100)
appli/TestWxGimmickReaderDialog/CMakeLists.txt
cmake/customtemplate.plist.in [new file with mode: 0644]

index 66a1fb1..ea20749 100644 (file)
@@ -1,7 +1,7 @@
 # ---------------------------------------------------------------------
 #
 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
-#                        pour la Santé)
+#                        pour la Santé©
 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
@@ -33,7 +33,23 @@ IF(WIN32)
   ENDIF(MINGW)
   
 ELSE(WIN32)
-  ADD_EXECUTABLE(creaImageIOApp MACOSX_BUNDLE main)
+  
+      ## EED 2026-11-23   
+###  ADD_EXECUTABLE(creaImageIOApp MACOSX_BUNDLE main)
+  
+    set(CUR_TARGET creaImageIOApp)
+  ADD_EXECUTABLE(${CUR_TARGET} MACOSX_BUNDLE main  )  
+  set_target_properties(${CUR_TARGET}  PROPERTIES
+    BUNDLE True
+    MACOSX_BUNDLE_GUI_IDENTIFIER my.domain.style.identifier.${CUR_TARGET}
+    MACOSX_BUNDLE_BUNDLE_NAME ${CUR_TARGET}
+    MACOSX_BUNDLE_BUNDLE_VERSION "0.1"
+    MACOSX_BUNDLE_SHORT_VERSION_STRING "0.1"
+    MACOSX_BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/cmake/customtemplate.plist.in
+  )
+
+  
+  
 ENDIF(WIN32)
 
 TARGET_LINK_LIBRARIES(         creaImageIOApp creaImageIO ${ITK_LIBRARIES} )
diff --git a/cmake/customtemplate.plist.in b/cmake/customtemplate.plist.in
new file mode 100644 (file)
index 0000000..847d22c
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://apple.com">
+<plist version="1.0">
+<dict>
+    <key>CFBundleExecutable</key>
+    <string>@MACOSX_BUNDLE_EXECUTABLE_NAME@</string>
+    <key>CFBundleIdentifier</key>
+    <string>@MACOSX_BUNDLE_GUI_IDENTIFIER@</string>
+    <key>CFBundleName</key>
+    <string>@MACOSX_BUNDLE_BUNDLE_NAME@</string>
+    <key>CFBundleVersion</key>
+    <string>@MACOSX_BUNDLE_BUNDLE_VERSION@</string>
+    <key>CFBundleShortVersionString</key>
+    <string>@MACOSX_BUNDLE_SHORT_VERSION_STRING@</string>
+    <key>CFBundlePackageType</key>
+    <string>APPL</string>
+    <key>NSHighResolutionCapable</key>
+    <true/>
+    <!-- Example custom key (e.g., camera permission) -->
+    <key>NSCameraUsageDescription</key>
+    <string>@MY_CAMERA_PERMISSION_TEXT@</string>
+</dict>
+</plist>