svn merge -r37028:37030 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender-staging.git] / source / blender / editors / space_view3d / CMakeLists.txt
1 # $Id: CMakeLists.txt 12931 2007-12-17 18:20:48Z theeth $
2 # ***** BEGIN GPL LICENSE BLOCK *****
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software Foundation,
16 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 #
18 # Contributor(s): Jacques Beaurain.
19 #
20 # ***** END GPL LICENSE BLOCK *****
21
22 set(INC
23         ../include
24         ../../blenfont
25         ../../blenkernel
26         ../../blenloader
27         ../../blenlib
28         ../../bmesh
29         ../../gpu
30         ../../imbuf
31         ../../makesdna
32         ../../makesrna
33         ../../windowmanager
34         ../../render/extern/include
35         ../../../../intern/guardedalloc
36         ../../../../intern/smoke/extern
37 )
38
39 set(INC_SYS
40         ${GLEW_INCLUDE_PATH}
41 )
42
43 set(SRC
44         drawanimviz.c
45         drawarmature.c
46         drawmesh.c
47         drawobject.c
48         drawvolume.c
49         space_view3d.c
50         view3d_buttons.c
51         view3d_draw.c
52         view3d_edit.c
53         view3d_fly.c
54         view3d_header.c
55         view3d_ops.c
56         view3d_select.c
57         view3d_snap.c
58         view3d_toolbar.c
59         view3d_view.c
60
61         view3d_intern.h
62 )
63
64 if(WITH_GAMEENGINE)
65         list(APPEND INC ../../../../source/gameengine/BlenderRoutines)
66         add_definitions(-DWITH_GAMEENGINE)
67 endif()
68
69 add_definitions(-DGLEW_STATIC)
70
71 blender_add_lib(bf_editor_space_view3d "${SRC}" "${INC}" "${INC_SYS}")