Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

used cmake
included a resonable base structure

File size: 766 bytes
RevLine 
[30]1PROJECT(Tutorial)
[12]2
[30]3SET(SRC_FILES src/main.cpp)
[12]4
[30]5SET(INC_FILES src/ExampleApplication.h  src/ExampleFrameListener.h  src/ExampleLoadingBar.h)
[12]6
[30]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)
[14]12
[30]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})
[14]17
[30]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.