Fix macOS bundles

This commit is contained in:
David Hrdlička
2022-02-07 23:05:59 +01:00
parent 4b3aabc4ba
commit 0f4931cdcc
2 changed files with 9 additions and 3 deletions

View File

@@ -174,12 +174,18 @@ endif()
# Install other dependencies
if(WIN32 OR (APPLE AND NOT QT))
if(WIN32)
install(CODE "
include(BundleUtilities)
get_filename_component(CMAKE_INSTALL_PREFIX_ABSOLUTE \${CMAKE_INSTALL_PREFIX} ABSOLUTE)
fixup_bundle(\"\${CMAKE_INSTALL_PREFIX_ABSOLUTE}/$<TARGET_FILE_NAME:86Box>\" \"\" \"\")"
COMPONENT Runtime)
elseif(APPLE AND NOT QT)
install(CODE "
include(BundleUtilities)
get_filename_component(CMAKE_INSTALL_PREFIX_ABSOLUTE \${CMAKE_INSTALL_PREFIX} ABSOLUTE)
fixup_bundle(\"\${CMAKE_INSTALL_PREFIX_ABSOLUTE}/86Box.app\" \"\" \"\")"
COMPONENT Runtime)
endif()