Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

bump

File size: 748 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
[33]19ADD_EXECUTABLE(main ${SRC_FILES} ${INC_FILES})
[30]20#Links the executable against Ogre
[33]21TARGET_LINK_LIBRARIES(main ${OGRE_LIBRARIES} ${OIS_LIBRARIES})
[30]22
23#Sets the install path
[33]24INSTALL(TARGETS main DESTINATION bin)
Note: See TracBrowser for help on using the repository browser.