Bugfix #28034
[blender-staging.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 set(INC
28         .
29         KXNetwork
30         ../BlenderRoutines
31         ../Converter
32         ../Expressions
33         ../GameLogic
34         ../Network
35         ../Network/LoopBackNetwork
36         ../Physics/common
37         ../Rasterizer
38         ../Rasterizer/RAS_OpenGLRasterizer
39         ../SceneGraph
40         ../../blender
41         ../../blender/blenfont
42         ../../blender/blenkernel
43         ../../blender/blenlib
44         ../../blender/blenloader
45         ../../blender/gpu
46         ../../blender/imbuf
47         ../../blender/makesdna
48         ../../blender/python
49         ../../blender/python/generic
50         ../../blender/python/mathutils
51         ../../../intern/container
52         ../../../intern/guardedalloc
53         ../../../intern/moto/include
54         ../../../intern/string
55 )
56
57 set(INC_SYS
58         ${GLEW_INCLUDE_PATH}
59 )
60
61 set(SRC
62         BL_BlenderShader.cpp
63         BL_Material.cpp
64         BL_Shader.cpp
65         BL_Texture.cpp
66         KX_ArmatureSensor.cpp
67         KX_BlenderMaterial.cpp
68         KX_BulletPhysicsController.cpp
69         KX_Camera.cpp
70         KX_CameraActuator.cpp
71         KX_CameraIpoSGController.cpp
72         KX_ConstraintActuator.cpp
73         KX_ConstraintWrapper.cpp
74         KX_ConvertPhysicsObjects.cpp
75         KX_Dome.cpp
76         KX_EmptyObject.cpp
77         KX_FontObject.cpp
78         KX_GameActuator.cpp
79         KX_GameObject.cpp
80         KX_IPO_SGController.cpp
81         KX_IPhysicsController.cpp
82         KX_IpoActuator.cpp
83         KX_KetsjiEngine.cpp
84         KX_Light.cpp
85         KX_LightIpoSGController.cpp
86         KX_MaterialIpoController.cpp
87         KX_MeshProxy.cpp
88         KX_MotionState.cpp
89         KX_MouseFocusSensor.cpp
90         KX_NearSensor.cpp
91         KX_ObColorIpoSGController.cpp
92         KX_ObjectActuator.cpp
93         KX_OrientationInterpolator.cpp
94         KX_ParentActuator.cpp
95         KX_PhysicsObjectWrapper.cpp
96         KX_PolyProxy.cpp
97         KX_PolygonMaterial.cpp
98         KX_PositionInterpolator.cpp
99         KX_PyConstraintBinding.cpp
100         KX_PyMath.cpp
101         KX_PythonInit.cpp
102         KX_PythonInitTypes.cpp
103         KX_PythonSeq.cpp
104         KX_RadarSensor.cpp
105         KX_RayCast.cpp
106         KX_RayEventManager.cpp
107         KX_RaySensor.cpp
108         KX_SCA_AddObjectActuator.cpp
109         KX_SCA_DynamicActuator.cpp
110         KX_SCA_EndObjectActuator.cpp
111         KX_SCA_ReplaceMeshActuator.cpp
112         KX_SG_BoneParentNodeRelationship.cpp
113         KX_SG_NodeRelationships.cpp
114         KX_ScalarInterpolator.cpp
115         KX_ScalingInterpolator.cpp
116         KX_Scene.cpp
117         KX_SceneActuator.cpp
118         KX_SoundActuator.cpp
119         KX_StateActuator.cpp
120         KX_TimeCategoryLogger.cpp
121         KX_TimeLogger.cpp
122         KX_TouchEventManager.cpp
123         KX_TouchSensor.cpp
124         KX_TrackToActuator.cpp
125         KX_VehicleWrapper.cpp
126         KX_VertexProxy.cpp
127         KX_VisibilityActuator.cpp
128         KX_WorldInfo.cpp
129         KX_WorldIpoController.cpp
130
131         BL_BlenderShader.h
132         BL_Material.h
133         BL_Shader.h
134         BL_Texture.h
135         KX_ArmatureSensor.h
136         KX_BlenderMaterial.h
137         KX_BulletPhysicsController.h
138         KX_Camera.h
139         KX_CameraActuator.h
140         KX_CameraIpoSGController.h
141         KX_ClientObjectInfo.h
142         KX_ConstraintActuator.h
143         KX_ConstraintWrapper.h
144         KX_ConvertPhysicsObject.h
145         KX_Dome.h
146         KX_EmptyObject.h
147         KX_FontObject.h
148         KX_GameActuator.h
149         KX_GameObject.h
150         KX_IInterpolator.h
151         KX_IPOTransform.h
152         KX_IPO_SGController.h
153         KX_IPhysicsController.h
154         KX_IScalarInterpolator.h
155         KX_ISceneConverter.h
156         KX_ISystem.h
157         KX_IpoActuator.h
158         KX_KetsjiEngine.h
159         KX_Light.h
160         KX_LightIpoSGController.h
161         KX_MaterialIpoController.h
162         KX_MeshProxy.h
163         KX_MotionState.h
164         KX_MouseFocusSensor.h
165         KX_NearSensor.h
166         KX_ObColorIpoSGController.h
167         KX_ObjectActuator.h
168         KX_OrientationInterpolator.h
169         KX_ParentActuator.h
170         KX_PhysicsEngineEnums.h
171         KX_PhysicsObjectWrapper.h
172         KX_PhysicsPropertiesobsolete.h
173         KX_PolyProxy.h
174         KX_PolygonMaterial.h
175         KX_PositionInterpolator.h
176         KX_PyConstraintBinding.h
177         KX_PyMath.h
178         KX_PythonInit.h
179         KX_PythonInitTypes.h
180         KX_PythonSeq.h
181         KX_RadarSensor.h
182         KX_RayCast.h
183         KX_RayEventManager.h
184         KX_RaySensor.h
185         KX_SCA_AddObjectActuator.h
186         KX_SCA_DynamicActuator.h
187         KX_SCA_EndObjectActuator.h
188         KX_SCA_ReplaceMeshActuator.h
189         KX_SG_BoneParentNodeRelationship.h
190         KX_SG_NodeRelationships.h
191         KX_ScalarInterpolator.h
192         KX_ScalingInterpolator.h
193         KX_Scene.h
194         KX_SceneActuator.h
195         KX_SoundActuator.h
196         KX_StateActuator.h
197         KX_TimeCategoryLogger.h
198         KX_TimeLogger.h
199         KX_TouchEventManager.h
200         KX_TouchSensor.h
201         KX_TrackToActuator.h
202         KX_VehicleWrapper.h
203         KX_VertexProxy.h
204         KX_VisibilityActuator.h
205         KX_WorldInfo.h
206         KX_WorldIpoController.h
207 )
208
209 add_definitions(-DGLEW_STATIC)
210
211 if(WITH_SDL)
212         list(APPEND INC_SYS
213                 ${SDL_INCLUDE_DIR}
214         )
215 else()
216         add_definitions(-DDISABLE_SDL)
217 endif()
218
219 if(WITH_CODEC_FFMPEG)
220         add_definitions(-DWITH_FFMPEG)
221 endif()
222
223 if(WITH_AUDASPACE)
224         list(APPEND INC
225                 ../../../intern/audaspace/intern
226         )
227         add_definitions(-DWITH_AUDASPACE)
228 endif()
229
230 if(WITH_BULLET)
231         list(APPEND INC
232                 ../../../extern/bullet2/src
233                 ../Physics/Bullet
234         )
235         add_definitions(-DUSE_BULLET)
236 endif()
237
238 blender_add_lib(ge_logic_ketsji "${SRC}" "${INC}" "${INC_SYS}")