Changeset 19 for code/branches
- Timestamp:
- Oct 10, 2007, 10:36:17 AM (17 years ago)
- Location:
- code/branches/tutorial/Tutorial
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial/Tutorial/CMakeLists.txt
r15 r19 1 1 PROJECT (Tutorial) 2 2 3 SET (MAIN_SRC main.cpp ExampleApplication.h ExampleFrameListener.h ExampleLoadingBar.h)3 SET (MAIN_SRC main.cpp) 4 4 5 5 ADD_EXECUTABLE (main ${MAIN_SRC}) … … 10 10 IF (OGRE_LIBS) 11 11 TARGET_ADD_LIBRARY (main OGRE_LIBS) 12 TARGET_LINK_LIBARIES (main OGRE_LIBS) 12 13 ENDIF (OGRE_LIBS) 13 14 … … 17 18 IF (OIS_LIBS) 18 19 ADD_LIBRARY (OIS_LIBS) 20 TARGET_LINK_LIBARIES (main OIS_LIBS) 19 21 ENDIF (OIS_LIBS) 20 22 21 INCLUDE_DIRECTORIES ( main. /usr/pack/ois-1.0-sd/i686-debian-linux3.1/include /usr/pack/ogre-1.4.5-sd/i686-debian-linux3.1/include)23 INCLUDE_DIRECTORIES (. /usr/pack/ois-1.0-sd/i686-debian-linux3.1/include /usr/pack/ogre-1.4.5-sd/i686-debian-linux3.1/include) -
code/branches/tutorial/Tutorial/main.cpp
r10 r19 58 58 }; 59 59 60 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN3261 #define WIN32_LEAN_AND_MEAN62 #include "windows.h"60 //#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 61 //#define WIN32_LEAN_AND_MEAN 62 //#include "windows.h" 63 63 64 INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )65 #else64 //INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT ) 65 //#else 66 66 int main(int argc, char **argv) 67 #endif67 //#endif 68 68 { 69 69 // Create application object … … 73 73 app.go(); 74 74 } catch( Exception& e ) { 75 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN3276 MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL);77 #else75 //#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 76 // MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL); 77 //#else 78 78 fprintf(stderr, "An exception has occurred: %s\n", 79 79 e.getFullDescription().c_str()); 80 #endif80 //#endif 81 81 } 82 82
Note: See TracChangeset
for help on using the changeset viewer.