Merge branch 'blender2.7'
[blender.git] / source / blender / shader_fx / 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 # The Original Code is Copyright (C) 2018, Blender Foundation
18 # All rights reserved.
19 #
20 # ***** END GPL LICENSE BLOCK *****
21
22 set(INC
23         .
24         intern
25         ../blenkernel
26         ../blenlib
27         ../blenfont
28         ../depsgraph
29         ../makesdna
30         ../makesrna
31         ../bmesh
32         ../render/extern/include
33         ../../../intern/elbeem/extern
34         ../../../intern/guardedalloc
35         ../../../intern/eigen
36 )
37
38 set(INC_SYS
39         ${ZLIB_INCLUDE_DIRS}
40 )
41
42 set(SRC
43         intern/FX_shader_util.h
44
45         intern/FX_shader_blur.c
46         intern/FX_shader_colorize.c
47         intern/FX_shader_flip.c
48         intern/FX_shader_glow.c
49         intern/FX_shader_light.c
50         intern/FX_shader_pixel.c
51         intern/FX_shader_rim.c
52         intern/FX_shader_shadow.c
53         intern/FX_shader_swirl.c
54         intern/FX_shader_util.c
55         intern/FX_shader_wave.c
56
57         FX_shader_types.h
58 )
59
60 if(WITH_INTERNATIONAL)
61         add_definitions(-DWITH_INTERNATIONAL)
62 endif()
63
64 add_definitions(${GL_DEFINITIONS})
65
66 blender_add_lib(bf_shader_fx "${SRC}" "${INC}" "${INC_SYS}")