207d83b56c662d0298395b39b5d63ef90f228f18
[blender-staging.git] / source / blender / editors / space_file / 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         ../../blenfont
26         ../../blenkernel
27         ../../blenlib
28         ../../blenloader
29         ../../imbuf
30         ../include
31         ../../../../intern/audaspace/intern
32         ../../../../intern/guardedalloc
33         ../../makesdna
34         ../../makesrna
35         ../../render/extern/include
36         ../../windowmanager
37 )
38
39 IF(WITH_IMAGE_OPENEXR)
40         ADD_DEFINITIONS(-DWITH_OPENEXR)
41 ENDIF(WITH_IMAGE_OPENEXR)
42
43 IF(WITH_IMAGE_TIFF)
44         ADD_DEFINITIONS(-DWITH_TIFF)
45 ENDIF(WITH_IMAGE_TIFF)
46
47 IF(WITH_IMAGE_OPENJPEG)
48         ADD_DEFINITIONS(-DWITH_OPENJPEG)
49 ENDIF(WITH_IMAGE_OPENJPEG)
50
51 IF(WITH_IMAGE_DDS)
52         ADD_DEFINITIONS(-DWITH_DDS)
53 ENDIF(WITH_IMAGE_DDS)
54
55 IF(WITH_IMAGE_CINEON)
56         ADD_DEFINITIONS(-DWITH_CINEON)
57 ENDIF(WITH_IMAGE_CINEON)
58
59 IF(WITH_IMAGE_HDR)
60         ADD_DEFINITIONS(-DWITH_HDR)
61 ENDIF(WITH_IMAGE_HDR)
62
63 IF(WIN32)
64         LIST(APPEND INC ${PTHREADS_INC})
65 ENDIF(WIN32)
66
67 BLENDERLIB(bf_editor_space_file "${SRC}" "${INC}")