Cycles: svn merge -r41225:41232 ^/trunk/blender
[blender.git] / source / gameengine / Converter / CMakeLists.txt
index f16e9e169ab125c9ad9177b3cd0d92437b38bfc0..e02b3d8f08a809bb9f3a2a9eb4a22f649ccf1093 100644 (file)
@@ -1,4 +1,3 @@
-# $Id$
 # ***** BEGIN GPL LICENSE BLOCK *****
 #
 # This program is free software; you can redistribute it and/or
@@ -13,7 +12,7 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software Foundation,
-# Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 #
 # The Original Code is Copyright (C) 2006, Blender Foundation
 # All rights reserved.
 #
 # ***** END GPL LICENSE BLOCK *****
 
-FILE(GLOB SRC *.cpp)
+set(INC
+       .
+       ../BlenderRoutines
+       ../Expressions
+       ../GameLogic
+       ../Ketsji
+       ../Ketsji/KXNetwork
+       ../Network
+       ../Network/LoopBackNetwork
+       ../Physics/Bullet
+       ../Physics/Dummy
+       ../Physics/common
+       ../Rasterizer
+       ../Rasterizer/RAS_OpenGLRasterizer
+       ../Rasterizer/RAS_OpenGLRasterizer
+       ../SceneGraph
+       ../../blender
+       ../../blender/blenkernel
+       ../../blender/blenlib
+       ../../blender/blenloader
+       ../../blender/gpu
+       ../../blender/ikplugin
+       ../../blender/imbuf
+       ../../blender/makesdna
+       ../../blender/makesrna
+       ../../blender/windowmanager
+       ../../../extern/bullet2/src
+       ../../../extern/Eigen2
+       ../../../intern/container
+       ../../../intern/guardedalloc
+       ../../../intern/moto/include
+       ../../../intern/string
+       ../../../extern/recastnavigation/Detour/Include
+)
+
+set(INC_SYS
 
-SET(INC
-  .
-  ../../../source/kernel/gen_system
-  ../../../intern/string
-  ../../../intern/guardedalloc
-  ../../../source/gameengine/Rasterizer/RAS_OpenGLRasterizer
-  ../../../intern/audaspace/intern
-  ../../../source/gameengine/Converter
-  ../../../source/gameengine/BlenderRoutines
-  ../../../source/blender/imbuf
-  ../../../intern/moto/include
-  ../../../source/gameengine/Ketsji
-  ../../../source/gameengine/Ketsji/KXNetwork
-  ../../../source/blender/blenlib
-  ../../../source/blender/blenkernel
-  ../../../source/blender/windowmanager
-  ../../../source/blender
-  ../../../source/blender/include
-  ../../../source/blender/makesdna
-  ../../../source/blender/makesrna
-  ../../../source/gameengine/Rasterizer
-  ../../../source/gameengine/Rasterizer/RAS_OpenGLRasterizer
-  ../../../source/gameengine/GameLogic
-  ../../../source/gameengine/Expressions
-  ../../../source/gameengine/Network
-  ../../../source/gameengine/SceneGraph
-  ../../../source/gameengine/Physics/common
-  ../../../source/gameengine/Physics/Bullet
-  ../../../source/gameengine/Physics/Dummy
-  ../../../source/gameengine/Network/LoopBackNetwork
-  ../../../source/blender/misc
-  ../../../source/blender/blenloader
-  ../../../source/blender/gpu
-  ../../../extern/bullet2/src
-  ${PYTHON_INC}
 )
 
-BLENDERLIB(bf_converter "${SRC}" "${INC}")
-#env.BlenderLib ( 'bf_converter', sources, Split(incs), [], libtype=['game','player'], priority=[5,70] )
+set(SRC
+       BL_ActionActuator.cpp
+       BL_ArmatureActuator.cpp
+       BL_ArmatureChannel.cpp
+       BL_ArmatureConstraint.cpp
+       BL_ArmatureObject.cpp
+       BL_BlenderDataConversion.cpp
+       BL_DeformableGameObject.cpp
+       BL_MeshDeformer.cpp
+       BL_ModifierDeformer.cpp
+       BL_ShapeActionActuator.cpp
+       BL_ShapeDeformer.cpp
+       BL_SkinDeformer.cpp
+       BlenderWorldInfo.cpp
+       KX_BlenderScalarInterpolator.cpp
+       KX_BlenderSceneConverter.cpp
+       KX_ConvertActuators.cpp
+       KX_ConvertControllers.cpp
+       KX_ConvertProperties.cpp
+       KX_ConvertSensors.cpp
+       KX_IpoConvert.cpp
+       KX_SoftBodyDeformer.cpp
+
+       BL_ActionActuator.h
+       BL_ArmatureActuator.h
+       BL_ArmatureChannel.h
+       BL_ArmatureConstraint.h
+       BL_ArmatureObject.h
+       BL_BlenderDataConversion.h
+       BL_DeformableGameObject.h
+       BL_MeshDeformer.h
+       BL_ModifierDeformer.h
+       BL_ShapeActionActuator.h
+       BL_ShapeDeformer.h
+       BL_SkinDeformer.h
+       BlenderWorldInfo.h
+       KX_BlenderScalarInterpolator.h
+       KX_BlenderSceneConverter.h
+       KX_ConvertActuators.h
+       KX_ConvertControllers.h
+       KX_ConvertProperties.h
+       KX_ConvertSensors.h
+       KX_IpoConvert.h
+       KX_SoftBodyDeformer.h
+)
+
+if(WITH_BULLET)
+       add_definitions(-DUSE_BULLET)
+endif()
+
+if(WITH_AUDASPACE)
+       list(APPEND INC
+               ../../../intern/audaspace/intern
+       )
+       add_definitions(-DWITH_AUDASPACE)
+endif()
+
+blender_add_lib(ge_converter "${SRC}" "${INC}" "${INC_SYS}")