Last change
on this file since 2610 was
2610,
checked in by rgrieder, 15 years ago
|
Prefixed library directory for each internal third party library.
From now on, include for instance <tolua/tolua++> instead of <tolua++.h>
This may avoid problems if external include directories because some of our includes our modified. Consider e.g. ENet to be in /usr/include/enet/enet.h. Then you will have /usr/inlcude as include directory, possibly revealing an installed version of, say, TinyXML++.
|
-
Property svn:eol-style set to
native
|
File size:
1.4 KB
|
Rev | Line | |
---|
[2509] | 1 | # Set the search paths for include files |
---|
| 2 | INCLUDE_DIRECTORIES( |
---|
| 3 | ${OGRE_INCLUDE_DIR} |
---|
| 4 | ${CEGUI_INCLUDE_DIR} |
---|
[2583] | 5 | ${ENET_INCLUDE_DIR} |
---|
[2509] | 6 | ${Boost_INCLUDE_DIRS} |
---|
| 7 | ${OPENAL_INCLUDE_DIR} |
---|
| 8 | ${ALUT_INCLUDE_DIR} |
---|
| 9 | ${VORBIS_INCLUDE_DIR} |
---|
| 10 | ${OGG_INCLUDE_DIR} |
---|
| 11 | ${LUA_INCLUDE_DIR} |
---|
| 12 | ${TCL_INCLUDE_PATH} |
---|
| 13 | ${DirectX_INCLUDE_DIR} |
---|
| 14 | ${ZLIB_INCLUDE_DIR} |
---|
| 15 | ) |
---|
[1505] | 16 | |
---|
[2574] | 17 | # Check whether the required CEGUILua version is even available |
---|
[2608] | 18 | IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION}) |
---|
[2583] | 19 | MESSAGE(FATAL_ERROR "No matching CEGUILua version shipped with Orxonox (${CEGUI_VERSION})") |
---|
[2608] | 20 | ENDIF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION}) |
---|
[2574] | 21 | |
---|
[2509] | 22 | INCLUDE_DIRECTORIES( |
---|
[2610] | 23 | ceguilua/ceguilua-${CEGUI_VERSION} |
---|
[2567] | 24 | ) |
---|
| 25 | |
---|
| 26 | INCLUDE_DIRECTORIES( |
---|
[2509] | 27 | . |
---|
| 28 | orxonox |
---|
| 29 | # Required for tolua bind files that are in the build folder |
---|
| 30 | ${CMAKE_CURRENT_BINARY_DIR} |
---|
[2567] | 31 | ${CMAKE_CURRENT_BINARY_DIR}/orxonox |
---|
[2509] | 32 | ) |
---|
| 33 | |
---|
| 34 | # Set special macro symbols across all libraries |
---|
[2593] | 35 | ADD_CXX_FLAGS("-DTIXML_USE_TICPP" 1) |
---|
| 36 | ADD_C_FLAGS ("-DTIXML_USE_TICPP" 1) |
---|
[2509] | 37 | |
---|
[2583] | 38 | # Include macros |
---|
| 39 | INCLUDE(AddSourceFiles) |
---|
| 40 | INCLUDE(UseTolua) |
---|
| 41 | |
---|
| 42 | # External libraries, but copied into the repository |
---|
[2610] | 43 | ADD_SUBDIRECTORY(tolua) |
---|
[2608] | 44 | ADD_SUBDIRECTORY(ceguilua) |
---|
[1505] | 45 | ADD_SUBDIRECTORY(cpptcl) |
---|
[2569] | 46 | ADD_SUBDIRECTORY(ogreceguirenderer) |
---|
[1505] | 47 | ADD_SUBDIRECTORY(ois) |
---|
| 48 | ADD_SUBDIRECTORY(tinyxml) |
---|
| 49 | |
---|
[1810] | 50 | # Our own libraries |
---|
[1505] | 51 | ADD_SUBDIRECTORY(util) |
---|
| 52 | ADD_SUBDIRECTORY(core) |
---|
[2522] | 53 | #ADD_SUBDIRECTORY(audio) |
---|
[1505] | 54 | ADD_SUBDIRECTORY(network) |
---|
| 55 | ADD_SUBDIRECTORY(orxonox) |
---|
Note: See
TracBrowser
for help on using the repository browser.