Last change
on this file since 2567 was
2567,
checked in by rgrieder, 16 years ago
|
Added all paths of included external libraries to the include directories and used ≠ for the includes.
Also added src/orxonox binary directory for consistency.
|
-
Property svn:eol-style set to
native
|
File size:
1.7 KB
|
Line | |
---|
1 | # Set the search paths for include files |
---|
2 | INCLUDE_DIRECTORIES( |
---|
3 | ${OGRE_INCLUDE_DIR} |
---|
4 | ${CEGUI_INCLUDE_DIR} |
---|
5 | # ${CEGUI_OGRE_INCLUDE_DIR} |
---|
6 | ${ENet_INCLUDE_DIR} |
---|
7 | ${Boost_INCLUDE_DIRS} |
---|
8 | ${OPENAL_INCLUDE_DIR} |
---|
9 | ${ALUT_INCLUDE_DIR} |
---|
10 | ${VORBIS_INCLUDE_DIR} |
---|
11 | ${OGG_INCLUDE_DIR} |
---|
12 | ${LUA_INCLUDE_DIR} |
---|
13 | ${TCL_INCLUDE_PATH} |
---|
14 | ${DirectX_INCLUDE_DIR} |
---|
15 | ${ZLIB_INCLUDE_DIR} |
---|
16 | ) |
---|
17 | |
---|
18 | INCLUDE_DIRECTORIES( |
---|
19 | cpptcl |
---|
20 | ois |
---|
21 | tinyxml |
---|
22 | tolua |
---|
23 | ) |
---|
24 | |
---|
25 | INCLUDE_DIRECTORIES( |
---|
26 | . |
---|
27 | orxonox |
---|
28 | # Required for tolua bind files that are in the build folder |
---|
29 | ${CMAKE_CURRENT_BINARY_DIR} |
---|
30 | ${CMAKE_CURRENT_BINARY_DIR}/orxonox |
---|
31 | ) |
---|
32 | |
---|
33 | # Set special macro symbols across all libraries |
---|
34 | SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTIXML_USE_TICPP") |
---|
35 | |
---|
36 | ADD_SUBDIRECTORY(cpptcl) |
---|
37 | ADD_SUBDIRECTORY(ois) |
---|
38 | ADD_SUBDIRECTORY(tinyxml) |
---|
39 | ADD_SUBDIRECTORY(tolua) |
---|
40 | |
---|
41 | # TODO: FIXME |
---|
42 | # Some people may not have CEGUILua installed, espc. with version 0.5 |
---|
43 | # And we don't know what lua version it was linked against, so we compile |
---|
44 | # it ourselves. |
---|
45 | # So first, find out what CEGUI version we have. |
---|
46 | |
---|
47 | IF (WIN32) |
---|
48 | ADD_SUBDIRECTORY(ceguilua-0.6.1/ceguilua) |
---|
49 | INCLUDE_DIRECTORIES(ceguilua-0.6.1/ceguilua) |
---|
50 | ELSE (WIN32) |
---|
51 | # FIXME |
---|
52 | #IF (${CEGUI_VERSION} LESS 0.6.0) |
---|
53 | ADD_SUBDIRECTORY(ceguilua-0.5.0/ceguilua) |
---|
54 | INCLUDE_DIRECTORIES(ceguilua-0.5.0/ceguilua) |
---|
55 | #ELSE (${CEGUI_VERSION} LESS 0.6.0) |
---|
56 | # ADD_SUBDIRECTORY(ceguilua-0.6.1/ceguilua) |
---|
57 | # INCLUDE_DIRECTORIES(ceguilua-0.6.1/ceguilua) |
---|
58 | #ENDIF (${CEGUI_VERSION} LESS 0.6.0) |
---|
59 | ENDIF (WIN32) |
---|
60 | |
---|
61 | # Include macros |
---|
62 | INCLUDE(AddSourceFiles) |
---|
63 | INCLUDE(UseTolua) |
---|
64 | |
---|
65 | # Our own libraries |
---|
66 | ADD_SUBDIRECTORY(util) |
---|
67 | ADD_SUBDIRECTORY(core) |
---|
68 | #ADD_SUBDIRECTORY(audio) |
---|
69 | ADD_SUBDIRECTORY(network) |
---|
70 | ADD_SUBDIRECTORY(orxonox) |
---|
Note: See
TracBrowser
for help on using the repository browser.