Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8114 for code/branches/mac_osx


Ignore:
Timestamp:
Mar 25, 2011, 8:33:38 PM (14 years ago)
Author:
youngk
Message:

Xcode 4 build-fix and a new level.

Location:
code/branches/mac_osx
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/mac_osx/src/CMakeLists.txt

    r8092 r8114  
    143143  OUTPUT_NAME orxonox
    144144)
    145 
    146 # Apple Mac OS X specific build settings
    147 IF(APPLE)
    148   # On Apple we need to link to AppKit and Foundation frameworks
    149   TARGET_LINK_LIBRARIES(orxonox-main
    150     "-framework AppKit"
    151     "-framework Foundation"
    152   )
    153 
    154   # Post-build step for the creation of the Dev-App bundle
    155   INCLUDE(PrepareDevBundle)
    156   ADD_CUSTOM_COMMAND(
    157     TARGET orxonox-main
    158     POST_BUILD
    159     # Copy the Orxonox.app from the dummy location to the correct one
    160     COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_BINARY_DIR}/${DEFAULT_BUNDLE_PATH}/Dummy/${PROJECT_NAME}.app" "${CMAKE_BINARY_DIR}/${DEFAULT_BUNDLE_PATH}/${CMAKE_CFG_INTDIR}/${PROJECT_NAME}.app"
    161     # Copy the executable into the Orxonox.app
    162     COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${ORXONOX_EXECUTABLE_NAME}" "${CMAKE_BINARY_DIR}/${DEFAULT_BUNDLE_PATH}/${CMAKE_CFG_INTDIR}/${PROJECT_NAME}.app/Contents/MacOS"
    163     # Copy the dev-build marker file to Orxonox.app
    164     COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/orxonox_dev_build.keep_me" "${CMAKE_BINARY_DIR}/${DEFAULT_BUNDLE_PATH}/${CMAKE_CFG_INTDIR}/${PROJECT_NAME}.app/Contents/MacOS"
    165     # Create a shortcut of the application to the Desktop
    166     COMMAND ${CMAKE_COMMAND} -E create_symlink "${CMAKE_BINARY_DIR}/${DEFAULT_BUNDLE_PATH}/${CMAKE_CFG_INTDIR}/${PROJECT_NAME}.app" "$ENV{HOME}/Desktop/${PROJECT_NAME}.app"
    167   )
    168 ENDIF(APPLE)
    169145
    170146# Main executable should depend on all modules
     
    195171ENDIF(MSVC)
    196172
     173# Apple Mac OS X specific build settings
     174IF(APPLE)
     175  # On Apple we need to link to AppKit and Foundation frameworks
     176  TARGET_LINK_LIBRARIES(orxonox-main
     177    "-framework AppKit"
     178    "-framework Foundation"
     179  )
     180
     181  # Post-build step for the creation of the Dev-App bundle
     182  INCLUDE(PrepareDevBundle)
     183  ADD_CUSTOM_COMMAND(
     184    TARGET orxonox-main
     185    POST_BUILD
     186    # Copy the Orxonox.app from the dummy location to the correct one
     187    COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_BINARY_DIR}/${DEFAULT_BUNDLE_PATH}/Dummy/${PROJECT_NAME}.app" "${CMAKE_BINARY_DIR}/${DEFAULT_BUNDLE_PATH}/${CMAKE_CFG_INTDIR}/${PROJECT_NAME}.app"
     188    # Copy the executable into the Orxonox.app
     189    COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${ORXONOX_EXECUTABLE_NAME}" "${CMAKE_BINARY_DIR}/${DEFAULT_BUNDLE_PATH}/${CMAKE_CFG_INTDIR}/${PROJECT_NAME}.app/Contents/MacOS"
     190    # Copy the dev-build marker file to Orxonox.app
     191    COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/orxonox_dev_build.keep_me" "${CMAKE_BINARY_DIR}/${DEFAULT_BUNDLE_PATH}/${CMAKE_CFG_INTDIR}/${PROJECT_NAME}.app/Contents/MacOS"
     192    # Create a shortcut of the application to the Desktop
     193    COMMAND ${CMAKE_COMMAND} -E create_symlink "${CMAKE_BINARY_DIR}/${DEFAULT_BUNDLE_PATH}/${CMAKE_CFG_INTDIR}/${PROJECT_NAME}.app" "$ENV{HOME}/Desktop/${PROJECT_NAME}.app"
     194  )
     195ENDIF(APPLE)
     196
    197197#################### Doxygen ####################
    198198
Note: See TracChangeset for help on using the changeset viewer.