merge with trunk at r31523
[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 FILE(GLOB SRC *.c)
23
24 SET(INC
25         ../../blenkernel
26         ../../blenlib
27         ../../imbuf
28         ../../bmesh
29         ../include
30         ../../../../intern/guardedalloc
31         ../../makesdna
32         ../../makesrna
33         ../../render/extern/include
34         ../../windowmanager
35 )
36
37 IF(WITH_IMAGE_OPENEXR)
38         ADD_DEFINITIONS(-DWITH_OPENEXR)
39 ENDIF(WITH_IMAGE_OPENEXR)
40
41 IF(WITH_IMAGE_TIFF)
42         ADD_DEFINITIONS(-DWITH_TIFF)
43 ENDIF(WITH_IMAGE_TIFF)
44
45 IF(WITH_LCMS)
46         SET(INC ${INC} ${LCMS_INCLUDE_DIR})
47         ADD_DEFINITIONS(-DWITH_LCMS)
48 ENDIF(WITH_LCMS)
49
50 IF(WIN32)
51         SET(INC ${INC} ${PTHREADS_INC})
52 ENDIF(WIN32)
53
54 BLENDERLIB(bf_editor_space_image "${SRC}" "${INC}")