Ghost Context Refactor
[blender-staging.git] / source / gameengine / BlenderRoutines / CMakeLists.txt
1
2 set(INC
3         .
4         ../Converter
5         ../Expressions
6         ../GameLogic
7         ../Ketsji
8         ../Network
9         ../Network/LoopBackNetwork
10         ../Physics/Bullet
11         ../Physics/common
12         ../Rasterizer
13         ../Rasterizer/RAS_OpenGLRasterizer
14         ../SceneGraph
15         ../../blender
16         ../../blender/blenfont
17         ../../blender/blenkernel
18         ../../blender/blenlib
19         ../../blender/blenloader
20         ../../blender/editors/include
21         ../../blender/gpu
22         ../../blender/imbuf
23         ../../blender/makesdna
24         ../../blender/makesrna
25         ../../blender/windowmanager
26         ../../../intern/container
27         ../../../intern/glew-mx
28         ../../../intern/guardedalloc
29         ../../../intern/string
30 )
31
32 set(INC_SYS
33         ../../../intern/moto/include
34         ${PTHREADS_INCLUDE_DIRS}
35         ${GLEW_INCLUDE_PATH}
36         ${BOOST_INCLUDE_DIR}
37 )
38
39 set(SRC
40         BL_KetsjiEmbedStart.cpp
41         BL_System.cpp
42         KX_BlenderCanvas.cpp
43         KX_BlenderInputDevice.cpp
44         KX_BlenderKeyboardDevice.cpp
45         KX_BlenderMouseDevice.cpp
46         KX_BlenderSystem.cpp
47
48         BL_System.h
49         KX_BlenderCanvas.h
50         KX_BlenderInputDevice.h
51         KX_BlenderKeyboardDevice.h
52         KX_BlenderMouseDevice.h
53         KX_BlenderSystem.h
54 )
55
56 add_definitions(${GL_DEFINITIONS})
57
58 if(WITH_AUDASPACE)
59         list(APPEND INC
60                 ../../../intern/audaspace/intern
61         )
62         add_definitions(-DWITH_AUDASPACE)
63 endif()
64
65 if(WITH_CODEC_FFMPEG)
66         add_definitions(-DWITH_FFMPEG)
67 endif()
68
69 if(WITH_BULLET)
70         list(APPEND INC_SYS
71                 ${BULLET_INCLUDE_DIRS}
72         )
73         add_definitions(-DWITH_BULLET)
74 endif()
75
76
77 blender_add_lib(ge_blen_routines "${SRC}" "${INC}" "${INC_SYS}")