Changeset 8114 for code/branches/mac_osx
- Timestamp:
- Mar 25, 2011, 8:33:38 PM (14 years ago)
- Location:
- code/branches/mac_osx
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/mac_osx/src/CMakeLists.txt
r8092 r8114 143 143 OUTPUT_NAME orxonox 144 144 ) 145 146 # Apple Mac OS X specific build settings147 IF(APPLE)148 # On Apple we need to link to AppKit and Foundation frameworks149 TARGET_LINK_LIBRARIES(orxonox-main150 "-framework AppKit"151 "-framework Foundation"152 )153 154 # Post-build step for the creation of the Dev-App bundle155 INCLUDE(PrepareDevBundle)156 ADD_CUSTOM_COMMAND(157 TARGET orxonox-main158 POST_BUILD159 # Copy the Orxonox.app from the dummy location to the correct one160 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.app162 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.app164 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 Desktop166 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)169 145 170 146 # Main executable should depend on all modules … … 195 171 ENDIF(MSVC) 196 172 173 # Apple Mac OS X specific build settings 174 IF(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 ) 195 ENDIF(APPLE) 196 197 197 #################### Doxygen #################### 198 198
Note: See TracChangeset
for help on using the changeset viewer.