synched with trunk at revision 32129
[blender.git] / source / gameengine / Ketsji / CMakeLists.txt
1 # $Id$
2 # ***** BEGIN GPL LICENSE BLOCK *****
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software Foundation,
16 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 #
18 # The Original Code is Copyright (C) 2006, Blender Foundation
19 # All rights reserved.
20 #
21 # The Original Code is: all of this file.
22 #
23 # Contributor(s): Jacques Beaurain.
24 #
25 # ***** END GPL LICENSE BLOCK *****
26
27 FILE(GLOB SRC *.cpp)
28
29 SET(INC
30         .
31         ../../../source/kernel/gen_system
32         ../../../intern/string
33         ../../../intern/guardedalloc
34         ../../../source/gameengine/Rasterizer/RAS_OpenGLRasterizer 
35         ../../../source/gameengine/Converter
36         ../../../source/blender/imbuf
37         ../../../intern/ghost/include
38         ../../../intern/moto/include
39         ../../../source/gameengine/Ketsji 
40         ../../../source/blender/blenlib
41         ../../../source/blender/blenkernel
42         ../../../source/blender/python
43         ../../../source/blender/python/generic
44         ../../../source/blender 
45         ../../../source/blender/include
46         ../../../source/blender/makesdna 
47         ../../../source/gameengine/Rasterizer 
48         ../../../source/gameengine/GameLogic
49         ../../../source/gameengine/Expressions 
50         ../../../source/gameengine/Ketsji/KXNetwork
51         ../../../source/gameengine/Network
52         ../../../source/gameengine/SceneGraph 
53         ../../../source/gameengine/Physics/common
54         ../../../source/gameengine/Physics/Bullet 
55         ../../../source/gameengine/Network/LoopBackNetwork
56         ../../../intern/audaspace/intern
57         ../../../source/blender/misc 
58         ../../../source/blender/blenloader
59         ../../../source/blender/gpu
60         ../../../extern/bullet2/src
61         ../../../extern/glew/include
62         ../../../extern/recastnavigation/Recast/Include
63         ../../../extern/recastnavigation/Detour/Include
64         ../../../source/blender/editors/include
65 )
66
67 ADD_DEFINITIONS(-DGLEW_STATIC)
68
69 IF(WITH_SDL)
70         SET(INC ${INC} ${SDL_INCLUDE_DIR})  
71 ELSE(WITH_SDL)
72         ADD_DEFINITIONS(-DDISABLE_SDL)
73 ENDIF(WITH_SDL)
74
75 IF(WITH_PYTHON)
76         LIST(APPEND INC ${PYTHON_INC})
77 ELSE(WITH_PYTHON)
78         ADD_DEFINITIONS(-DDISABLE_PYTHON)
79 ENDIF(WITH_PYTHON)
80
81 IF(WITH_FFMPEG)
82         ADD_DEFINITIONS(-DWITH_FFMPEG)
83 ENDIF(WITH_FFMPEG)
84
85 BLENDERLIB(bf_ketsji "${SRC}" "${INC}")