aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorPavel Puchkin <i@neoascetic.me>2015-03-10 19:29:13 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2015-03-17 15:37:23 +0100
commitca5df44edb1963d4c634390d33229ec928e284dc (patch)
tree9cebdc66e6a1da7cc79bf7a3f0ed5e5581d4fa63 /src/CMakeLists.txt
parent768596927458d4d1d4ae7914526311471d242555 (diff)
downloadminetest-ca5df44edb1963d4c634390d33229ec928e284dc.tar.gz
minetest-ca5df44edb1963d4c634390d33229ec928e284dc.tar.bz2
minetest-ca5df44edb1963d4c634390d33229ec928e284dc.zip
Standalone bundle for OSX (w/ dependencies!)
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d56ec18c0..2ce108681 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -737,7 +737,20 @@ if(WIN32)
endif()
if(BUILD_CLIENT)
- install(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR})
+ install(TARGETS ${PROJECT_NAME}
+ RUNTIME DESTINATION ${BINDIR}
+ LIBRARY DESTINATION ${BINDIR}
+ ARCHIVE DESTINATION ${BINDIR}
+ BUNDLE DESTINATION .
+ )
+
+ if(APPLE)
+ install(CODE "
+ set(BU_CHMOD_BUNDLE_ITEMS ON)
+ include(BundleUtilities)
+ fixup_bundle(\"\${CMAKE_INSTALL_PREFIX}/${BUNDLE_PATH}\" \"\" \"\${CMAKE_INSTALL_PREFIX}/${BINDIR}\")
+ " COMPONENT Runtime)
+ endif()
if(USE_GETTEXT)
foreach(LOCALE ${GETTEXT_AVAILABLE_LOCALES})