1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

OS X: reintroduce packaging code

It's much simpler now thanks to bundle utilities with @rpath support.
This commit is contained in:
Nikolay Kasyanov 2015-08-03 19:21:35 +02:00
parent c868010c20
commit 2ded28f6aa

View file

@ -736,13 +736,18 @@ if (APPLE)
install(CODE " install(CODE "
set(BU_CHMOD_BUNDLE_ITEMS ON) set(BU_CHMOD_BUNDLE_ITEMS ON)
include(BundleUtilities) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
include(BundleUtilitiesWithRPath)
" COMPONENT Runtime) " COMPONENT Runtime)
#For now, search unresolved dependencies only in default system paths, so if you put unresolveable (i.e. with @executable_path in id name) lib or framework somewhere else, it would fail set(DIRS "${CMAKE_PREFIX_PATH}/lib")
set(DIRS "")
include(CPack) install(CODE "
cmake_policy(SET CMP0009 OLD)
fixup_bundle(\"${OPENMW_APP}\" \"\" \"${DIRS}\")
fixup_bundle(\"${OPENCS_APP}\" \"\" \"${DIRS}\")
" COMPONENT Runtime)
include(CPack)
endif (APPLE) endif (APPLE)
# Doxygen Target -- simply run 'make doc' or 'make doc_pages' # Doxygen Target -- simply run 'make doc' or 'make doc_pages'