forked from speed-dreams/speed-dreams-code
APPLE specific install items
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6183 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 699fa5971fcb792e98ea06ae51911aa435b4856b Former-commit-id: fc751b417117b89a267e8435ca0044b40d1329f1
This commit is contained in:
parent
1599b18424
commit
72655ff9e6
6 changed files with 37 additions and 15 deletions
|
@ -48,11 +48,16 @@ ENDIF(UNIX)
|
|||
|
||||
SD_INSTALL_FILES(BIN TARGETS ${_TARGET_NAME})
|
||||
|
||||
IF(APPLE)
|
||||
IF((APPLE) AND ("${CMAKE_INSTALL_PREFIX}" MATCHES "\\.app$"))
|
||||
SET(OSG_PLUGIN_DIR /opt/local/lib/osgPlugins-3.4.0)
|
||||
message("OSG_PLUGIN_DIR = ${OSG_PLUGIN_DIR}")
|
||||
INSTALL(FILES Info.plist DESTINATION ./Contents)
|
||||
SET(APPS "\${CMAKE_INSTALL_PREFIX}/games/${_TARGET_NAME}")
|
||||
SET(DIRS /opt/local)
|
||||
SET(DIRS)
|
||||
#SET(DIRS ${DIRS} "${OSG_PLUGIN_DIR}")
|
||||
SET(DIRS ${DIRS} "\${CMAKE_INSTALL_PREFIX}/MacOS")
|
||||
SET(DIRS ${DIRS} "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/lib")
|
||||
SET(DIRS ${DIRS} /opt/local/lib)
|
||||
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/modules/graphic/ssggraph.so")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/modules/racing/standardgame.so")
|
||||
|
@ -67,7 +72,7 @@ IF(APPLE)
|
|||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/human/human.so")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/kilo2008/kilo2008.so")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/networkhuman/networkhuman.so")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/replay/replay.so")
|
||||
# LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/replay/replay.so")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/shadow/shadow.so")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/shadow_36GP/shadow_36GP.so")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/shadow_lp1/shadow_lp1.so")
|
||||
|
@ -99,13 +104,30 @@ IF(APPLE)
|
|||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/usr_lp1/usr_lp1.so")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/usr_ls1/usr_ls1.so")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/usr_ls2/usr_ls2.so")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/usr_mpa1/usr_mpa1.so")
|
||||
# LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/usr_mpa1/usr_mpa1.so")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/usr_mpa11/usr_mpa11.so")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/usr_mpa12/usr_mpa12.so")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/usr_rs/usr_rs.so")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/usr_sc/usr_sc.so")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/drivers/usr_trb1/usr_trb1.so")
|
||||
|
||||
IF(OPTION_OSGGRAPH)
|
||||
#SET(OSG_PLUGIN_DIR /opt/local/lib/osgPlugins-3.4.0)
|
||||
#INSTALL(DIRECTORY "${OSG_PLUGIN_DIR}" DESTINATION ./MacOS FILES_MATCHING PATTERN "*.so")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/modules/graphic/osggraph.so")
|
||||
FILE(GLOB osg_plugins "${OSG_PLUGIN_DIR}/*.so")
|
||||
message("osg_plugins = ${osg_plugins}")
|
||||
FOREACH(pi ${osg_plugins})
|
||||
INSTALL(FILES ${pi} DESTINATION ./MacOS/osgPlugins-3.4.0)
|
||||
GET_FILENAME_COMPONENT(fname ${pi} NAME)
|
||||
message("fname = ${fname}")
|
||||
LIST(APPEND PlugIns "\${CMAKE_INSTALL_PREFIX}/MacOS/osgPlugins-3.4.0/${fname}")
|
||||
ENDFOREACH()
|
||||
ENDIF(OPTION_OSGGRAPH)
|
||||
|
||||
message("PlugIns = ${PlugIns}")
|
||||
message("DIRS = ${DIRS}")
|
||||
|
||||
|
||||
# These are installed by their respective CMakeLists.txt
|
||||
# Executables
|
||||
|
@ -120,7 +142,7 @@ IF(APPLE)
|
|||
SET(BU_CHMOD_BUNDLE_ITEMS ON)
|
||||
FIXUP_BUNDLE(\"${APPS}\" \"${PlugIns}\" \"${DIRS}\")")
|
||||
|
||||
ENDIF(APPLE)
|
||||
ENDIF()
|
||||
|
||||
# Under Windows, install needed 3rd party DLLs close to Speed Dreams executable.
|
||||
IF(WIN32)
|
||||
|
|
|
@ -20,7 +20,7 @@ ENDIF(UNIX)
|
|||
|
||||
SD_INSTALL_FILES(BIN TARGETS ${_TARGET_NAME})
|
||||
|
||||
if(APPLE)
|
||||
IF((APPLE) AND ("${CMAKE_INSTALL_PREFIX}" MATCHES "\\.app$"))
|
||||
SET(APPS "\${CMAKE_INSTALL_PREFIX}/games/${_TARGET_NAME}")
|
||||
SET(DIRS /opt/local)
|
||||
SET(DIRS ${DIRS} "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/lib")
|
||||
|
@ -30,4 +30,4 @@ if(APPLE)
|
|||
INCLUDE(BundleUtilities)
|
||||
SET(BU_CHMOD_BUNDLE_ITEMS ON)
|
||||
FIXUP_BUNDLE(\"${APPS}\" \"${PlugIns}\" \"${DIRS}\")")
|
||||
endif(APPLE)
|
||||
endif()
|
|
@ -59,7 +59,7 @@ ENDIF(UNIX)
|
|||
|
||||
SD_INSTALL_FILES(BIN TARGETS ${_TARGET_NAME})
|
||||
|
||||
if(APPLE)
|
||||
IF((APPLE) AND ("${CMAKE_INSTALL_PREFIX}" MATCHES "\\.app$"))
|
||||
SET(APPS "\${CMAKE_INSTALL_PREFIX}/games/${_TARGET_NAME}")
|
||||
SET(DIRS /opt/local)
|
||||
SET(DIRS ${DIRS} "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/lib")
|
||||
|
@ -69,5 +69,5 @@ if(APPLE)
|
|||
INCLUDE(BundleUtilities)
|
||||
SET(BU_CHMOD_BUNDLE_ITEMS ON)
|
||||
FIXUP_BUNDLE(\"${APPS}\" \"${PlugIns}\" \"${DIRS}\")")
|
||||
endif(APPLE)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ ENDIF(UNIX)
|
|||
|
||||
SD_INSTALL_FILES(BIN TARGETS ${_TARGET_NAME})
|
||||
|
||||
if(APPLE)
|
||||
IF((APPLE) AND ("${CMAKE_INSTALL_PREFIX}" MATCHES "\\.app$"))
|
||||
set(APPS "\${CMAKE_INSTALL_PREFIX}/games/${_TARGET_NAME}")
|
||||
set(DIRS /opt/local)
|
||||
set(DIRS ${DIRS} "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/lib")
|
||||
|
@ -24,4 +24,4 @@ if(APPLE)
|
|||
include(BundleUtilities)
|
||||
fixup_bundle(\"${APPS}\" \"${PlugIns}\" \"${DIRS}\")
|
||||
" COMPONENT Runtime)
|
||||
endif(APPLE)
|
||||
endif()
|
||||
|
|
|
@ -26,7 +26,7 @@ ENDIF(UNIX)
|
|||
|
||||
SD_INSTALL_FILES(BIN TARGETS ${_TARGET_NAME})
|
||||
|
||||
if(APPLE)
|
||||
IF((APPLE) AND ("${CMAKE_INSTALL_PREFIX}" MATCHES "\\.app$"))
|
||||
SET(APPS "\${CMAKE_INSTALL_PREFIX}/games/${_TARGET_NAME}")
|
||||
SET(DIRS /opt/local)
|
||||
SET(DIRS ${DIRS} "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/lib")
|
||||
|
@ -36,4 +36,4 @@ if(APPLE)
|
|||
INCLUDE(BundleUtilities)
|
||||
SET(BU_CHMOD_BUNDLE_ITEMS ON)
|
||||
FIXUP_BUNDLE(\"${APPS}\" \"${PlugIns}\" \"${DIRS}\")")
|
||||
endif(APPLE)
|
||||
endif()
|
|
@ -64,7 +64,7 @@ ENDIF(UNIX)
|
|||
|
||||
SD_INSTALL_FILES(BIN TARGETS ${_TARGET_NAME})
|
||||
|
||||
if(APPLE)
|
||||
IF((APPLE) AND ("${CMAKE_INSTALL_PREFIX}" MATCHES "\\.app$"))
|
||||
SET(APPS "\${CMAKE_INSTALL_PREFIX}/games/${_TARGET_NAME}")
|
||||
SET(DIRS /opt/local)
|
||||
SET(DIRS ${DIRS} "\${CMAKE_INSTALL_PREFIX}/lib64/games/${_TARGET_NAME}/lib")
|
||||
|
@ -74,4 +74,4 @@ if(APPLE)
|
|||
INCLUDE(BundleUtilities)
|
||||
SET(BU_CHMOD_BUNDLE_ITEMS ON)
|
||||
FIXUP_BUNDLE(\"${APPS}\" \"${PlugIns}\" \"${DIRS}\")")
|
||||
endif(APPLE)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue