rename blenderlib to blender_add_lib
[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         ../../imbuf
28         ../../makesdna
29         ../../makesrna
30         ../../windowmanager
31         ../../render/extern/include
32         ../../../../intern/guardedalloc
33 )
34
35 set(SRC
36         image_buttons.c
37         image_draw.c
38         image_header.c
39         image_ops.c
40         image_render.c
41         space_image.c
42
43         image_intern.h
44 )
45
46 if(WITH_IMAGE_OPENJPEG)
47         add_definitions(-DWITH_OPENJPEG)
48 endif()
49
50 if(WITH_IMAGE_OPENEXR)
51         add_definitions(-DWITH_OPENEXR)
52 endif()
53
54 if(WITH_IMAGE_TIFF)
55         add_definitions(-DWITH_TIFF)
56 endif()
57
58 if(WITH_IMAGE_CINEON)
59         add_definitions(-DWITH_CINEON)
60 endif()
61
62 if(WITH_LCMS)
63         set(INC ${INC} ${LCMS_INCLUDE_DIR})
64         add_definitions(-DWITH_LCMS)
65 endif()
66
67 blender_add_lib(bf_editor_space_image "${SRC}" "${INC}")