MacOSX: fixed combined entitlements and bundle icon

This commit is contained in:
matlabbe
2025-10-12 15:48:50 -07:00
parent 739628aef9
commit 56aa26ce1d
4 changed files with 64 additions and 24 deletions
-8
View File
@@ -77,14 +77,6 @@ IF(BUILD_AS_BUNDLE AND (APPLE OR WIN32))
SET(qtconf_dest_dir Resources)
SET(thirdparty_dest_dir MacOS)
SET(APPS "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/MacOS/${CMAKE_BUNDLE_NAME}")
# Add the entitlement file to the target's properties
set(MACOS_ENTITLEMENTS_FILE "${CMAKE_CURRENT_SOURCE_DIR}/app.entitlements")
# Set the entitlement file for the target
set_target_properties(rtabmap_app PROPERTIES
MACOSX_BUNDLE_INFO_PLIST "${MACOS_ENTITLEMENTS_FILE}"
)
ENDIF(APPLE)
IF(OpenNI2_FOUND)