CMake: unbundle eigen3
[blender.git] / source / gameengine / Converter / 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         ../BlenderRoutines
29         ../Expressions
30         ../GameLogic
31         ../Ketsji
32         ../Ketsji/KXNetwork
33         ../Network
34         ../Network/LoopBackNetwork
35         ../Physics/Bullet
36         ../Physics/Dummy
37         ../Physics/common
38         ../Rasterizer
39         ../Rasterizer/RAS_OpenGLRasterizer
40         ../SceneGraph
41         ../../blender
42         ../../blender/blenkernel
43         ../../blender/blenlib
44         ../../blender/blenloader
45         ../../blender/gpu
46         ../../blender/ikplugin
47         ../../blender/imbuf
48         ../../blender/makesdna
49         ../../blender/makesrna
50         ../../blender/windowmanager
51         ../../../intern/container
52         ../../../intern/guardedalloc
53         ../../../intern/string
54 )
55
56 set(INC_SYS
57         ../../../intern/moto/include
58         ../../../extern/recastnavigation/Detour/Include
59         ${EIGEN3_INCLUDE_DIRS}
60         ${PTHREADS_INCLUDE_DIRS}
61         ${BOOST_INCLUDE_DIR}
62 )
63
64 set(SRC
65         BL_ActionActuator.cpp
66         BL_ArmatureActuator.cpp
67         BL_ArmatureChannel.cpp
68         BL_ArmatureConstraint.cpp
69         BL_ArmatureObject.cpp
70         BL_BlenderDataConversion.cpp
71         BL_DeformableGameObject.cpp
72         BL_MeshDeformer.cpp
73         BL_ModifierDeformer.cpp
74         BL_ShapeActionActuator.cpp
75         BL_ShapeDeformer.cpp
76         BL_SkinDeformer.cpp
77         BlenderWorldInfo.cpp
78         KX_BlenderScalarInterpolator.cpp
79         KX_BlenderSceneConverter.cpp
80         KX_ConvertActuators.cpp
81         KX_ConvertControllers.cpp
82         KX_ConvertProperties.cpp
83         KX_ConvertSensors.cpp
84         KX_LibLoadStatus.cpp
85         KX_SoftBodyDeformer.cpp
86
87         BL_ActionActuator.h
88         BL_ArmatureActuator.h
89         BL_ArmatureChannel.h
90         BL_ArmatureConstraint.h
91         BL_ArmatureObject.h
92         BL_BlenderDataConversion.h
93         BL_DeformableGameObject.h
94         BL_MeshDeformer.h
95         BL_ModifierDeformer.h
96         BL_ShapeActionActuator.h
97         BL_ShapeDeformer.h
98         BL_SkinDeformer.h
99         BlenderWorldInfo.h
100         KX_BlenderScalarInterpolator.h
101         KX_BlenderSceneConverter.h
102         KX_ConvertActuators.h
103         KX_ConvertControllers.h
104         KX_ConvertProperties.h
105         KX_ConvertSensors.h
106         KX_LibLoadStatus.h
107         KX_SoftBodyDeformer.h
108 )
109
110 if(WITH_BULLET)
111         list(APPEND INC_SYS
112                 ${BULLET_INCLUDE_DIRS}
113         )
114         add_definitions(-DWITH_BULLET)
115 endif()
116
117 if(WITH_AUDASPACE)
118         list(APPEND INC
119                 ../../../intern/audaspace/intern
120         )
121         add_definitions(-DWITH_AUDASPACE)
122 endif()
123
124 blender_add_lib(ge_converter "${SRC}" "${INC}" "${INC_SYS}")