rename and negate DISABLE_PYTHON --> WITH_PYTHON
[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         ../../../source/kernel/gen_system
30         ../../../intern/string
31         ../../../intern/guardedalloc
32         ../../../source/gameengine/Rasterizer/RAS_OpenGLRasterizer 
33         ../../../source/gameengine/Converter
34         ../../../source/blender/imbuf
35         ../../../intern/moto/include
36         ../../../source/gameengine/Ketsji 
37         ../../../source/blender/blenlib
38         ../../../source/blender/blenkernel
39         ../../../source/blender/python
40         ../../../source/blender/python/generic
41         ../../../source/blender 
42         ../../../source/blender/makesdna 
43         ../../../source/gameengine/Rasterizer 
44         ../../../source/gameengine/GameLogic
45         ../../../source/gameengine/Expressions 
46         ../../../source/gameengine/Ketsji/KXNetwork
47         ../../../source/gameengine/Network
48         ../../../source/gameengine/SceneGraph 
49         ../../../source/gameengine/Physics/common
50         ../../../source/gameengine/Network/LoopBackNetwork
51         ../../../intern/audaspace/intern
52         ../../../source/blender/blenloader
53         ../../../source/blender/gpu
54         ../../../extern/glew/include
55 )
56
57 SET(SRC
58         BL_BlenderShader.cpp
59         BL_Material.cpp
60         BL_Shader.cpp
61         BL_Texture.cpp
62         KX_ArmatureSensor.cpp
63         KX_BlenderMaterial.cpp
64         KX_BulletPhysicsController.cpp
65         KX_Camera.cpp
66         KX_CameraActuator.cpp
67         KX_CameraIpoSGController.cpp
68         KX_ConstraintActuator.cpp
69         KX_ConstraintWrapper.cpp
70         KX_ConvertPhysicsObjects.cpp
71         KX_Dome.cpp
72         KX_EmptyObject.cpp
73         KX_GameActuator.cpp
74         KX_GameObject.cpp
75         KX_IPO_SGController.cpp
76         KX_IPhysicsController.cpp
77         KX_IpoActuator.cpp
78         KX_KetsjiEngine.cpp
79         KX_Light.cpp
80         KX_LightIpoSGController.cpp
81         KX_MaterialIpoController.cpp
82         KX_MeshProxy.cpp
83         KX_MotionState.cpp
84         KX_MouseFocusSensor.cpp
85         KX_NearSensor.cpp
86         KX_ObColorIpoSGController.cpp
87         KX_ObjectActuator.cpp
88         KX_OrientationInterpolator.cpp
89         KX_ParentActuator.cpp
90         KX_PhysicsObjectWrapper.cpp
91         KX_PolyProxy.cpp
92         KX_PolygonMaterial.cpp
93         KX_PositionInterpolator.cpp
94         KX_PyConstraintBinding.cpp
95         KX_PyMath.cpp
96         KX_PythonInit.cpp
97         KX_PythonInitTypes.cpp
98         KX_PythonSeq.cpp
99         KX_RadarSensor.cpp
100         KX_RayCast.cpp
101         KX_RayEventManager.cpp
102         KX_RaySensor.cpp
103         KX_SCA_AddObjectActuator.cpp
104         KX_SCA_DynamicActuator.cpp
105         KX_SCA_EndObjectActuator.cpp
106         KX_SCA_ReplaceMeshActuator.cpp
107         KX_SG_BoneParentNodeRelationship.cpp
108         KX_SG_NodeRelationships.cpp
109         KX_ScalarInterpolator.cpp
110         KX_ScalingInterpolator.cpp
111         KX_Scene.cpp
112         KX_SceneActuator.cpp
113         KX_SoundActuator.cpp
114         KX_StateActuator.cpp
115         KX_TimeCategoryLogger.cpp
116         KX_TimeLogger.cpp
117         KX_TouchEventManager.cpp
118         KX_TouchSensor.cpp
119         KX_TrackToActuator.cpp
120         KX_VehicleWrapper.cpp
121         KX_VertexProxy.cpp
122         KX_VisibilityActuator.cpp
123         KX_WorldInfo.cpp
124         KX_WorldIpoController.cpp
125 )
126
127 ADD_DEFINITIONS(-DGLEW_STATIC)
128
129 IF(WITH_SDL)
130         SET(INC ${INC} ${SDL_INCLUDE_DIR})  
131 ELSE(WITH_SDL)
132         ADD_DEFINITIONS(-DDISABLE_SDL)
133 ENDIF(WITH_SDL)
134
135 IF(WITH_PYTHON)
136         LIST(APPEND INC ${PYTHON_INC})
137         ADD_DEFINITIONS(-DWITH_PYTHON)
138 ENDIF(WITH_PYTHON)
139
140 IF(WITH_FFMPEG)
141         ADD_DEFINITIONS(-DWITH_FFMPEG)
142 ENDIF(WITH_FFMPEG)
143
144 IF(WITH_BULLET)
145         ADD_DEFINITIONS(-DUSE_BULLET)
146         LIST(APPEND INC ../../../extern/bullet2/src)
147         LIST(APPEND INC ../../../source/gameengine/Physics/Bullet )
148 ENDIF(WITH_BULLET)
149
150 BLENDERLIB(bf_ketsji "${SRC}" "${INC}")