fixed crash when NDOF operators were called without an NDOF_MOTION event
[blender.git] / source / blender / editors / space_image / 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         ../../imbuf
29         ../../makesdna
30         ../../makesrna
31         ../../render/extern/include
32         ../../windowmanager
33         ../../../../intern/guardedalloc
34 )
35
36 set(INC_SYS
37         ${GLEW_INCLUDE_PATH}
38 )
39
40 set(SRC
41         image_buttons.c
42         image_draw.c
43         image_ops.c
44         space_image.c
45
46         image_intern.h
47 )
48
49 if(WITH_IMAGE_OPENJPEG)
50         add_definitions(-DWITH_OPENJPEG)
51 endif()
52
53 if(WITH_IMAGE_OPENEXR)
54         add_definitions(-DWITH_OPENEXR)
55 endif()
56
57 if(WITH_IMAGE_TIFF)
58         add_definitions(-DWITH_TIFF)
59 endif()
60
61 if(WITH_IMAGE_CINEON)
62         add_definitions(-DWITH_CINEON)
63 endif()
64
65 blender_add_lib(bf_editor_space_image "${SRC}" "${INC}" "${INC_SYS}")