Merged changes in the trunk up to revision 55357.
[blender.git] / source / blender / editors / space_view3d / 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 # Contributor(s): Jacques Beaurain.
18 #
19 # ***** END GPL LICENSE BLOCK *****
20
21 set(INC
22         ../include
23         ../../blenfont
24         ../../blenkernel
25         ../../blenlib
26         ../../blenloader
27         ../../bmesh
28         ../../gpu
29         ../../imbuf
30         ../../makesdna
31         ../../makesrna
32         ../../render/extern/include
33         ../../windowmanager
34         ../../../../intern/guardedalloc
35         ../../../../intern/smoke/extern
36 )
37
38 set(INC_SYS
39         ${GLEW_INCLUDE_PATH}
40 )
41
42 set(SRC
43         drawanimviz.c
44         drawarmature.c
45         drawmesh.c
46         drawobject.c
47         drawvolume.c
48         space_view3d.c
49         view3d_buttons.c
50         view3d_draw.c
51         view3d_edit.c
52         view3d_fly.c
53         view3d_header.c
54         view3d_iterators.c
55         view3d_ops.c
56         view3d_project.c
57         view3d_ruler.c
58         view3d_select.c
59         view3d_snap.c
60         view3d_toolbar.c
61         view3d_view.c
62
63         view3d_intern.h
64 )
65
66 if(WITH_GAMEENGINE)
67         list(APPEND INC
68                 ../../../gameengine/BlenderRoutines
69         )
70         add_definitions(-DWITH_GAMEENGINE)
71 endif()
72
73 add_definitions(-DGLEW_STATIC)
74
75 if(WITH_INTERNATIONAL)
76         add_definitions(-DWITH_INTERNATIONAL)
77 endif()
78
79 if(WITH_FREESTYLE)
80         add_definitions(-DWITH_FREESTYLE)
81 endif()
82
83 blender_add_lib(bf_editor_space_view3d "${SRC}" "${INC}" "${INC_SYS}")