7e497200710cfb61254329f06eaa90dce7c7b1eb
[blender.git] / source / blender / editors / render / 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         ../../blenlib
27         ../../blenloader
28         ../../gpu
29         ../../imbuf
30         ../../makesdna
31         ../../makesrna
32         ../../render/extern/include
33         ../../windowmanager
34         ../../../../intern/guardedalloc
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_CODEC_QUICKTIME)
54         list(APPEND INC ../../quicktime)
55         list(APPEND INC_SYS ${QUICKTIME_INCLUDE_DIRS})
56         add_definitions(-DWITH_QUICKTIME)
57 endif()
58
59 if(WITH_OPENMP)
60         add_definitions(-DPARALLEL=1)
61 endif()
62
63 if(WITH_HEADLESS)
64         add_definitions(-DWITH_HEADLESS)
65 endif()
66
67 blender_add_lib(bf_editor_render "${SRC}" "${INC}" "${INC_SYS}")