mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 21:40:03 +00:00
OS X: reintroduce packaging code
It's much simpler now thanks to bundle utilities with @rpath support.
This commit is contained in:
parent
c868010c20
commit
2ded28f6aa
@ -736,13 +736,18 @@ if (APPLE)
|
||||
|
||||
install(CODE "
|
||||
set(BU_CHMOD_BUNDLE_ITEMS ON)
|
||||
include(BundleUtilities)
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
|
||||
include(BundleUtilitiesWithRPath)
|
||||
" 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 "")
|
||||
set(DIRS "${CMAKE_PREFIX_PATH}/lib")
|
||||
|
||||
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)
|
||||
|
||||
# Doxygen Target -- simply run 'make doc' or 'make doc_pages'
|
||||
|
Loading…
x
Reference in New Issue
Block a user