Merge branch 'blender2.7'
[blender.git] / source / blender / editors / render / 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 # ***** END GPL LICENSE BLOCK *****
17
18 set(INC
19         ../include
20         ../../blenkernel
21         ../../blenlib
22         ../../blenloader
23         ../../blentranslation
24         ../../depsgraph
25         ../../draw
26         ../../gpu
27         ../../imbuf
28         ../../bmesh
29         ../../makesdna
30         ../../makesrna
31         ../../render/extern/include
32         ../../windowmanager
33         ../../../../intern/guardedalloc
34         ../../../../intern/glew-mx
35 )
36
37 set(INC_SYS
38         ${GLEW_INCLUDE_PATH}
39 )
40
41 set(SRC
42         render_internal.c
43         render_opengl.c
44         render_ops.c
45         render_preview.c
46         render_shading.c
47         render_update.c
48         render_view.c
49
50         render_intern.h
51 )
52
53 if(WITH_HEADLESS)
54         add_definitions(-DWITH_HEADLESS)
55 endif()
56
57 add_definitions(${GL_DEFINITIONS})
58
59 if(WITH_FREESTYLE)
60         list(APPEND INC
61                 ../../freestyle
62         )
63         add_definitions(-DWITH_FREESTYLE)
64 endif()
65
66 if(WITH_INTERNATIONAL)
67         add_definitions(-DWITH_INTERNATIONAL)
68 endif()
69
70 blender_add_lib(bf_editor_render "${SRC}" "${INC}" "${INC_SYS}")