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
|
Line | |
---|
1 | PROJECT(Tutorial) |
---|
2 | |
---|
3 | SET(SRC_FILES src/main.cpp) |
---|
4 | |
---|
5 | SET(INC_FILES src/ExampleApplication.h src/ExampleFrameListener.h src/ExampleLoadingBar.h) |
---|
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) |
---|
12 | |
---|
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}) |
---|
17 | |
---|
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) |
---|
Note: See
TracBrowser
for help on using the repository browser.