OS X: reintroduce packaging code

It's much simpler now thanks to bundle utilities with @rpath support.
sceneinput
Nikolay Kasyanov 10 years ago
parent c868010c20
commit 2ded28f6aa

@ -736,12 +736,17 @@ 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")
install(CODE "
cmake_policy(SET CMP0009 OLD)
fixup_bundle(\"${OPENMW_APP}\" \"\" \"${DIRS}\")
fixup_bundle(\"${OPENCS_APP}\" \"\" \"${DIRS}\")
" COMPONENT Runtime)
include(CPack)
endif (APPLE)

Loading…
Cancel
Save