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