Merge branch 'blender-v2.91-release' into master
[blender.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 # ***** END GPL LICENSE BLOCK *****
17
18 set(INC
19   ../include
20   ../../blenfont
21   ../../blenkernel
22   ../../blenlib
23   ../../blenloader
24   ../../blentranslation
25   ../../gpu
26   ../../imbuf
27   ../../makesdna
28   ../../makesrna
29   ../../render/extern/include
30   ../../windowmanager
31   ../../../../intern/atomic
32   ../../../../intern/glew-mx
33   ../../../../intern/guardedalloc
34 )
35
36 set(SRC
37   file_draw.c
38   file_ops.c
39   file_panels.c
40   file_utils.c
41   filelist.c
42   filesel.c
43   fsmenu.c
44   space_file.c
45
46   file_intern.h
47   filelist.h
48   fsmenu.h
49 )
50
51 set(LIB
52 )
53
54 if(WITH_HEADLESS)
55   add_definitions(-DWITH_HEADLESS)
56 else()
57   list(APPEND LIB
58     bf_editor_datafiles
59   )
60 endif()
61
62 if(WITH_IMAGE_OPENEXR)
63   add_definitions(-DWITH_OPENEXR)
64 endif()
65
66 if(WITH_OPENIMAGEIO)
67   add_definitions(-DWITH_OPENIMAGEIO)
68 endif()
69
70 if(WITH_IMAGE_TIFF)
71   add_definitions(-DWITH_TIFF)
72 endif()
73
74 if(WITH_IMAGE_OPENJPEG)
75   add_definitions(-DWITH_OPENJPEG)
76 endif()
77
78 if(WITH_IMAGE_DDS)
79   add_definitions(-DWITH_DDS)
80 endif()
81
82 if(WITH_IMAGE_CINEON)
83   add_definitions(-DWITH_CINEON)
84 endif()
85
86 if(WITH_IMAGE_HDR)
87   add_definitions(-DWITH_HDR)
88 endif()
89
90 if(WITH_INTERNATIONAL)
91   add_definitions(-DWITH_INTERNATIONAL)
92 endif()
93
94
95 if(WITH_FREESTYLE)
96   add_definitions(-DWITH_FREESTYLE)
97 endif()
98
99 blender_add_lib(bf_editor_space_file "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")