Part I of the Freestyle branch merger: new 'freestyle' folders.
[blender-staging.git] / source / blender / editors / space_file / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # Contributor(s): Jacques Beaurain.
18 #
19 # ***** END GPL LICENSE BLOCK *****
20
21 set(INC
22         ../include
23         ../../blenfont
24         ../../blenkernel
25         ../../blenlib
26         ../../blenloader
27         ../../imbuf
28         ../../makesdna
29         ../../makesrna
30         ../../render/extern/include
31         ../../windowmanager
32         ../../../../intern/guardedalloc
33 )
34
35 set(INC_SYS
36         ${GLEW_INCLUDE_PATH}
37 )
38
39 set(SRC
40         file_draw.c
41         file_ops.c
42         file_panels.c
43         filelist.c
44         filesel.c
45         fsmenu.c
46         space_file.c
47
48         file_intern.h
49         filelist.h
50         fsmenu.h
51 )
52
53 if(WITH_HEADLESS)
54         add_definitions(-DWITH_HEADLESS)
55 endif()
56
57 if(WITH_IMAGE_OPENEXR)
58         add_definitions(-DWITH_OPENEXR)
59 endif()
60
61 if(WITH_IMAGE_TIFF)
62         add_definitions(-DWITH_TIFF)
63 endif()
64
65 if(WITH_IMAGE_OPENJPEG)
66         add_definitions(-DWITH_OPENJPEG)
67 endif()
68
69 if(WITH_IMAGE_DDS)
70         add_definitions(-DWITH_DDS)
71 endif()
72
73 if(WITH_IMAGE_CINEON)
74         add_definitions(-DWITH_CINEON)
75 endif()
76
77 if(WITH_IMAGE_HDR)
78         add_definitions(-DWITH_HDR)
79 endif()
80
81 if(WITH_INTERNATIONAL)
82         add_definitions(-DWITH_INTERNATIONAL)
83 endif()
84
85 if(WITH_FREESTYLE)
86         add_definitions(-DWITH_FREESTYLE)
87 endif()
88
89 blender_add_lib(bf_editor_space_file "${SRC}" "${INC}" "${INC_SYS}")