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