CMake: use BundleUtilities to fix up Dolphin.app

This commit is contained in:
Michael Maltese
2017-02-03 16:10:59 -08:00
parent 529dc6aa53
commit 38816bf51d
6 changed files with 61 additions and 176 deletions

View File

@ -176,11 +176,8 @@ if(wxWidgets_FOUND)
endforeach()
# Update library references to make the bundle portable
add_custom_command(TARGET ${DOLPHIN_EXE} POST_BUILD
COMMAND echo "Fixing up application bundle: ${BUNDLE_PATH}"
COMMAND ${CMAKE_SOURCE_DIR}/Tools/deploy-mac.py $<TARGET_FILE_DIR:${DOLPHIN_EXE}>/../..
)
include(DolphinPostprocessBundle)
dolphin_postprocess_bundle(${DOLPHIN_EXE})
# Install bundle into systemwide /Applications directory.
install(TARGETS ${DOLPHIN_EXE} DESTINATION /Applications)