- Location:
- /code/branches/tutorial/Tutorial
- Files:
-
- 4 added
- 8 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
/code/branches/tutorial/Tutorial/CMakeLists.txt
r30 r20 1 PROJECT (Tutorial)1 PROJECT (Tutorial) 2 2 3 SET (SRC_FILES src/main.cpp)3 SET (MAIN_SRC main.cpp) 4 4 5 SET(INC_FILES src/ExampleApplication.h src/ExampleFrameListener.h src/ExampleLoadingBar.h)5 ADD_EXECUTABLE (main ${MAIN_SRC}) 6 6 7 #This sets where to look for "Find*.cmake" files 8 SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) 9 #Performs the search and sets the variables 10 FIND_PACKAGE(OGRE) 11 FIND_PACKAGE(OIS) 7 # find OGRE 8 FIND_LIBRARY (OGRE_LIBS NAMES OGRE 9 PATH /usr/lib /usr/local/lib /usr/pack/ogre-1.4.5-sd/i686-debian-linux3.1/lib/pkgconfig) 10 IF (OGRE_LIBS) 11 TARGET_ADD_LIBRARY (main OGRE_LIBS) 12 TARGET_LINK_LIBRARIES (main OGRE_LIBS) 13 ENDIF (OGRE_LIBS) 12 14 13 #Sets the search paths for the linking 14 LINK_DIRECTORIES(${OGRE_LIB_DIR} ${OIS_LIB_DIR}) 15 #Sets the search path for include files 16 INCLUDE_DIRECTORIES(${OGRE_INCLUDE_DIR} ${OIS_INCLUDE_DIR}) 15 # find OIS 16 FIND_LIBRARY (OIS_LIBS NAMES OIS 17 PATH /usr/lib /usr/local/lib /usr/pack/ois-1.0-sd/i686-debian-linux3.1/lib/pkgconfig) 18 IF (OIS_LIBS) 19 ADD_LIBRARY (OIS_LIBS) 20 TARGET_LINK_LIBRARIES (main OIS_LIBS) 21 ENDIF (OIS_LIBS) 17 22 18 #Creates an executable 19 ADD_EXECUTABLE(build/main ${SRC_FILES} ${INC_FILES}) 20 #Links the executable against Ogre 21 TARGET_LINK_LIBRARIES(build/main ${OGRE_LIBRARIES} ${OIS_LIBRARIES}) 22 23 #Sets the install path 24 INSTALL(TARGETS build/main DESTINATION bin) 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)
Note: See TracChangeset
for help on using the changeset viewer.