Changeset 8083 for code/branches/mac_osx/src
- Timestamp:
- Mar 17, 2011, 12:12:17 PM (14 years ago)
- Location:
- code/branches/mac_osx/src
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/mac_osx/src/CMakeLists.txt
r7510 r8083 140 140 SOURCE_FILES 141 141 Orxonox.cc 142 OrxonoxMac.mm 142 143 OUTPUT_NAME orxonox 143 144 ) 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 "/System/Library/Frameworks/AppKit.framework" 151 "/System/Library/Frameworks/Foundation.framework" 152 ) 153 154 # Tell Apple where to find the Info.plist file, used for Cocoa 155 # TODO: Of course, this only makes sense for development builds. CPack will take care of this otherwise 156 # Property XCODE_ATTRIBUTE_INFOPLIST_FILE is fo Xcode, while the other is for makefile generator 157 SET_TARGET_PROPERTIES(orxonox-main PROPERTIES 158 XCODE_ATTRIBUTE_INFOPLIST_FILE "${DEFAULT_DATA_PATH}/mac/Orxonox-Info.plist" 159 MACOSX_BUNDLE_INFO_PLIST "${DEFAULT_DATA_PATH}/mac/Orxonox-Info.plist" 160 ) 161 ENDIF(APPLE) 162 144 163 # Main executable should depend on all modules 145 164 ADD_DEPENDENCIES(orxonox-main ${ORXONOX_MODULES}) -
code/branches/mac_osx/src/Orxonox.cc
r6417 r8083 53 53 #ifdef ORXONOX_USE_WINMAIN 54 54 INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT) 55 #elif defined(ORXONOX_PLATFORM_APPLE) 56 int main_mac(int argc, char** argv) 55 57 #else 56 58 int main(int argc, char** argv) 57 59 #endif 58 60 { 61 COUT(0) << "main mac" << std::endl; 59 62 try 60 63 {
Note: See TracChangeset
for help on using the changeset viewer.