e511704c7f484466ca4e2df3bf1e6e6b43e937a4
[blender.git] / source / gameengine / GameLogic / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Jacques Beaurain.
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 set(INC
27         .
28         ../Expressions
29         ../Rasterizer
30         ../SceneGraph
31         ../../blender/blenlib
32         ../../../intern/container
33         ../../../intern/moto/include
34         ../../../intern/string
35         ../../../intern/ghost
36 )
37
38 set(INC_SYS
39
40 )
41
42 set(SRC
43         SCA_2DFilterActuator.cpp
44         SCA_ANDController.cpp
45         SCA_ActuatorEventManager.cpp
46         SCA_ActuatorSensor.cpp
47         SCA_AlwaysEventManager.cpp
48         SCA_AlwaysSensor.cpp
49         SCA_BasicEventManager.cpp
50         SCA_DelaySensor.cpp
51         SCA_EventManager.cpp
52         SCA_ExpressionController.cpp
53         SCA_IActuator.cpp
54         SCA_IController.cpp
55         SCA_IInputDevice.cpp
56         SCA_ILogicBrick.cpp
57         SCA_IObject.cpp
58         SCA_IScene.cpp
59         SCA_ISensor.cpp
60         SCA_JoystickManager.cpp
61         SCA_JoystickSensor.cpp
62         SCA_KeyboardManager.cpp
63         SCA_KeyboardSensor.cpp
64         SCA_LogicManager.cpp
65         SCA_MouseManager.cpp
66         SCA_MouseSensor.cpp
67         SCA_NANDController.cpp
68         SCA_NORController.cpp
69         SCA_ORController.cpp
70         SCA_PropertyActuator.cpp
71         SCA_PropertyEventManager.cpp
72         SCA_PropertySensor.cpp
73         SCA_PythonController.cpp
74         SCA_PythonKeyboard.cpp
75         SCA_PythonMouse.cpp
76         SCA_RandomActuator.cpp
77         SCA_RandomEventManager.cpp
78         SCA_RandomNumberGenerator.cpp
79         SCA_RandomSensor.cpp
80         SCA_TimeEventManager.cpp
81         SCA_XNORController.cpp
82         SCA_XORController.cpp
83         Joystick/SCA_Joystick.cpp
84         Joystick/SCA_JoystickEvents.cpp
85
86         SCA_2DFilterActuator.h
87         SCA_ANDController.h
88         SCA_ActuatorEventManager.h
89         SCA_ActuatorSensor.h
90         SCA_AlwaysEventManager.h
91         SCA_AlwaysSensor.h
92         SCA_BasicEventManager.h
93         SCA_DelaySensor.h
94         SCA_EventManager.h
95         SCA_ExpressionController.h
96         SCA_IActuator.h
97         SCA_IController.h
98         SCA_IInputDevice.h
99         SCA_ILogicBrick.h
100         SCA_IObject.h
101         SCA_IScene.h
102         SCA_ISensor.h
103         SCA_JoystickManager.h
104         SCA_JoystickSensor.h
105         SCA_KeyboardManager.h
106         SCA_KeyboardSensor.h
107         SCA_LogicManager.h
108         SCA_MouseManager.h
109         SCA_MouseSensor.h
110         SCA_NANDController.h
111         SCA_NORController.h
112         SCA_ORController.h
113         SCA_PropertyActuator.h
114         SCA_PropertyEventManager.h
115         SCA_PropertySensor.h
116         SCA_PythonController.h
117         SCA_PythonKeyboard.h
118         SCA_PythonMouse.h
119         SCA_RandomActuator.h
120         SCA_RandomEventManager.h
121         SCA_RandomNumberGenerator.h
122         SCA_RandomSensor.h
123         SCA_TimeEventManager.h
124         SCA_XNORController.h
125         SCA_XORController.h
126         Joystick/SCA_Joystick.h
127         Joystick/SCA_JoystickDefines.h
128         Joystick/SCA_JoystickPrivate.h
129 )
130
131 if(WITH_SDL)
132         list(APPEND INC_SYS
133                 ${SDL_INCLUDE_DIR}
134         )
135
136         add_definitions(-DWITH_SDL)
137
138         if(WITH_GHOST_SDL)
139                 add_definitions(-DWITH_GHOST_SDL)
140         endif()
141 endif()
142
143 blender_add_lib(ge_logic "${SRC}" "${INC}" "${INC_SYS}")