Merge branch 'blender2.7'
[blender.git] / source / blender / gpencil_modifiers / 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/MOD_gpencil_util.h
44
45         intern/MOD_gpencil_util.c
46         intern/MOD_gpencilarmature.c
47         intern/MOD_gpencilnoise.c
48         intern/MOD_gpencilsubdiv.c
49         intern/MOD_gpencilsimplify.c
50         intern/MOD_gpencilthick.c
51         intern/MOD_gpenciltint.c
52         intern/MOD_gpencilcolor.c
53         intern/MOD_gpencilarray.c
54         intern/MOD_gpencilbuild.c
55         intern/MOD_gpencilopacity.c
56         intern/MOD_gpencillattice.c
57         intern/MOD_gpencilmirror.c
58         intern/MOD_gpencilsmooth.c
59         intern/MOD_gpencilhook.c
60         intern/MOD_gpenciloffset.c
61         intern/MOD_gpenciltime.c
62
63         MOD_gpencil_modifiertypes.h
64 )
65
66 if(WITH_INTERNATIONAL)
67         add_definitions(-DWITH_INTERNATIONAL)
68 endif()
69
70 add_definitions(${GL_DEFINITIONS})
71
72 blender_add_lib(bf_gpencil_modifiers "${SRC}" "${INC}" "${INC_SYS}")