2024-10-07 23:20:43 +02:00
|
|
|
include(BundleUtilities)
|
|
|
|
|
2024-12-23 12:14:54 +01:00
|
|
|
# Xcode generator puts the build type in the build directory
|
|
|
|
set(BUILD_PREFIX "")
|
|
|
|
if (CMAKE_GENERATOR STREQUAL "Xcode")
|
|
|
|
set(BUILD_PREFIX "${CMAKE_BUILD_TYPE}/")
|
|
|
|
endif()
|
|
|
|
|
2024-10-07 23:20:43 +02:00
|
|
|
# Use generator expressions to get the absolute path to the bundle and frameworks
|
2024-12-23 12:14:54 +01:00
|
|
|
set(APPS "${BUILD_PREFIX}Zelda64Recompiled.app/Contents/MacOS/Zelda64Recompiled")
|
|
|
|
set(DIRS "${BUILD_PREFIX}Zelda64Recompiled.app/Contents/Frameworks")
|
2024-10-07 23:20:43 +02:00
|
|
|
|
|
|
|
# The fixup_bundle command needs an absolute path
|
|
|
|
file(REAL_PATH ${APPS} APPS)
|
|
|
|
file(REAL_PATH ${DIRS} DIRS)
|
|
|
|
|
|
|
|
fixup_bundle("${APPS}" "" "${DIRS}")
|