add option WITH_BUILTIN_GLEW, so linux packagers can disable to use their own glew...
[blender.git] / source / gameengine / BlenderRoutines / CMakeLists.txt
1
2 set(INC
3         .
4         ../../../source/kernel/gen_system
5         ../../../intern/string
6         ../../../intern/guardedalloc
7         ../../../intern/audaspace/intern
8         ../../../source/gameengine/Rasterizer/RAS_OpenGLRasterizer 
9         ../../../source/gameengine/Converter
10         ../../../source/blender/imbuf
11         ../../../intern/moto/include
12         ../../../source/gameengine/Ketsji 
13         ../../../source/blender/blenlib
14         ../../../source/blender/blenkernel 
15         ../../../source/blender/blenfont
16         ../../../source/blender/editors/include
17         ../../../source/blender/windowmanager
18         ../../../source/blender
19         ../../../source/blender/makesdna
20         ../../../source/blender/makesrna 
21         ../../../source/gameengine/Rasterizer 
22         ../../../source/gameengine/GameLogic
23         ../../../source/gameengine/Expressions 
24         ../../../source/gameengine/Network
25         ../../../source/gameengine/SceneGraph 
26         ../../../source/gameengine/Physics/common
27         ../../../source/gameengine/Physics/Bullet
28         ../../../source/gameengine/Network/LoopBackNetwork
29         ../../../source/blender/blenloader
30         ../../../source/blender/gpu
31         ../../../extern/bullet2/src
32         ${GLEW_INCLUDE_PATH}
33 )
34
35 set(SRC
36         BL_KetsjiEmbedStart.cpp
37         KX_BlenderCanvas.cpp
38         KX_BlenderGL.cpp
39         KX_BlenderInputDevice.cpp
40         KX_BlenderKeyboardDevice.cpp
41         KX_BlenderMouseDevice.cpp
42         KX_BlenderRenderTools.cpp
43         KX_BlenderSystem.cpp
44
45         KX_BlenderCanvas.h
46         KX_BlenderGL.h
47         KX_BlenderInputDevice.h
48         KX_BlenderKeyboardDevice.h
49         KX_BlenderMouseDevice.h
50         KX_BlenderRenderTools.h
51         KX_BlenderSystem.h
52 )
53
54 add_definitions(-DGLEW_STATIC)
55
56 if(WITH_CODEC_FFMPEG)
57         add_definitions(-DWITH_FFMPEG)
58 endif()
59
60 blender_add_lib(ge_blen_routines "${SRC}" "${INC}")