Line | |
---|
1 | PROJECT (Tutorial) |
---|
2 | |
---|
3 | SET (MAIN_SRC main.cpp) |
---|
4 | |
---|
5 | ADD_EXECUTABLE (main ${MAIN_SRC}) |
---|
6 | |
---|
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) |
---|
14 | |
---|
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) |
---|
22 | |
---|
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
TracBrowser
for help on using the repository browser.