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
|
Line | |
---|
1 | # Set the search paths for include files |
---|
2 | INCLUDE_DIRECTORIES( |
---|
3 | ${OGRE_INCLUDE_DIR} |
---|
4 | ${CEGUI_INCLUDE_DIR} |
---|
5 | ${ENET_INCLUDE_DIR} |
---|
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 | ) |
---|
16 | |
---|
17 | # Check whether the required CEGUILua version is even available |
---|
18 | IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION}) |
---|
19 | MESSAGE(FATAL_ERROR "No matching CEGUILua version shipped with Orxonox (${CEGUI_VERSION})") |
---|
20 | ENDIF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION}) |
---|
21 | |
---|
22 | INCLUDE_DIRECTORIES( |
---|
23 | ceguilua/ceguilua-${CEGUI_VERSION} |
---|
24 | ) |
---|
25 | |
---|
26 | INCLUDE_DIRECTORIES( |
---|
27 | . |
---|
28 | orxonox |
---|
29 | # Required for tolua bind files that are in the build folder |
---|
30 | ${CMAKE_CURRENT_BINARY_DIR} |
---|
31 | ${CMAKE_CURRENT_BINARY_DIR}/orxonox |
---|
32 | ) |
---|
33 | |
---|
34 | # Set special macro symbols across all libraries |
---|
35 | ADD_CXX_FLAGS("-DTIXML_USE_TICPP" 1) |
---|
36 | ADD_C_FLAGS ("-DTIXML_USE_TICPP" 1) |
---|
37 | |
---|
38 | # Include macros |
---|
39 | INCLUDE(AddSourceFiles) |
---|
40 | INCLUDE(UseTolua) |
---|
41 | |
---|
42 | # External libraries, but copied into the repository |
---|
43 | ADD_SUBDIRECTORY(tolua) |
---|
44 | ADD_SUBDIRECTORY(ceguilua) |
---|
45 | ADD_SUBDIRECTORY(cpptcl) |
---|
46 | ADD_SUBDIRECTORY(ogreceguirenderer) |
---|
47 | ADD_SUBDIRECTORY(ois) |
---|
48 | ADD_SUBDIRECTORY(tinyxml) |
---|
49 | |
---|
50 | # Our own libraries |
---|
51 | ADD_SUBDIRECTORY(util) |
---|
52 | ADD_SUBDIRECTORY(core) |
---|
53 | #ADD_SUBDIRECTORY(audio) |
---|
54 | ADD_SUBDIRECTORY(network) |
---|
55 | ADD_SUBDIRECTORY(orxonox) |
---|
Note: See
TracBrowser
for help on using the repository browser.