Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / space_image / 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         ../../blentranslation
27         ../../bmesh
28         ../../depsgraph
29         ../../imbuf
30         ../../gpu
31         ../../makesdna
32         ../../makesrna
33         ../../render/extern/include
34         ../../windowmanager
35         ../../../../intern/guardedalloc
36         ../../../../intern/glew-mx
37 )
38
39 set(INC_SYS
40         ${GLEW_INCLUDE_PATH}
41 )
42
43 set(SRC
44         image_buttons.c
45         image_draw.c
46         image_edit.c
47         image_ops.c
48         space_image.c
49
50         image_intern.h
51 )
52
53 if(WITH_INTERNATIONAL)
54         add_definitions(-DWITH_INTERNATIONAL)
55 endif()
56
57 if(WITH_OPENIMAGEIO)
58         add_definitions(-DWITH_OPENIMAGEIO)
59 endif()
60
61 if(WITH_IMAGE_OPENJPEG)
62         add_definitions(-DWITH_OPENJPEG)
63 endif()
64
65 if(WITH_IMAGE_OPENEXR)
66         add_definitions(-DWITH_OPENEXR)
67 endif()
68
69 if(WITH_IMAGE_TIFF)
70         add_definitions(-DWITH_TIFF)
71 endif()
72
73 if(WITH_IMAGE_CINEON)
74         add_definitions(-DWITH_CINEON)
75 endif()
76
77 add_definitions(${GL_DEFINITIONS})
78
79 blender_add_lib(bf_editor_space_image "${SRC}" "${INC}" "${INC_SYS}")