Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutorial/Tutorial/CMakeLists.txt @ 30

Last change on this file since 30 was 30, checked in by nicolasc, 17 years ago

used cmake
included a resonable base structure

File size: 766 bytes
Line 
1PROJECT(Tutorial)
2
3SET(SRC_FILES src/main.cpp)
4
5SET(INC_FILES src/ExampleApplication.h  src/ExampleFrameListener.h  src/ExampleLoadingBar.h)
6
7#This sets where to look for "Find*.cmake" files
8SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
9#Performs the search and sets the variables
10FIND_PACKAGE(OGRE)
11FIND_PACKAGE(OIS)
12
13#Sets the search paths for the linking
14LINK_DIRECTORIES(${OGRE_LIB_DIR} ${OIS_LIB_DIR})
15#Sets the search path for include files
16INCLUDE_DIRECTORIES(${OGRE_INCLUDE_DIR} ${OIS_INCLUDE_DIR})
17
18#Creates an executable
19ADD_EXECUTABLE(build/main ${SRC_FILES} ${INC_FILES})
20#Links the executable against Ogre
21TARGET_LINK_LIBRARIES(build/main ${OGRE_LIBRARIES} ${OIS_LIBRARIES})
22
23#Sets the install path
24INSTALL(TARGETS build/main DESTINATION bin)
Note: See TracBrowser for help on using the repository browser.