Skip to content

Commit

Permalink
Add SDL2 to macOS app bundle
Browse files Browse the repository at this point in the history
This will make the macOS app bundle completely self-contained (as it
should be), i.e. the client will not need to install SDL2 separately.
  • Loading branch information
xycaleth committed May 7, 2018
1 parent 56bccd9 commit f658038
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,12 @@ if(BuildSPEngine OR BuildJK2SPEngine)
endif(WIN32)

if(MakeApplicationBundles)
install(CODE "
include(BundleUtilities)
set(BU_CHMOD_BUNDLE_ITEMS ON)
fixup_bundle(\"${CMAKE_BINARY_DIR}/${ProjectName}.app\" \"\" \"\")
"
COMPONENT Runtime)
install(TARGETS ${ProjectName}
BUNDLE
DESTINATION ${InstallDir}
Expand Down
6 changes: 6 additions & 0 deletions codemp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,12 @@ if(BuildMPEngine)
endif(WIN32)

if(MakeApplicationBundles)
install(CODE "
include(BundleUtilities)
set(BU_CHMOD_BUNDLE_ITEMS ON)
fixup_bundle(\"${CMAKE_BINARY_DIR}/${MPEngine}.app\" \"\" \"\")
"
COMPONENT Runtime)
install(TARGETS ${MPEngine}
BUNDLE
DESTINATION ${JKAInstallDir}
Expand Down

0 comments on commit f658038

Please sign in to comment.