Fix for memory leak caused by re-making mipmaps
[blender-staging.git] / source / blender / 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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16 #
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Jacques Beaurain
23 #                 Ben Batt
24 #
25 # ***** END GPL LICENSE BLOCK *****
26
27 set(INC 
28         . ./intern
29         ../blenlib
30         ../blenloader
31         ../makesdna
32         ../blenkernel
33         ../blenkernel/intern
34         ../render/extern/include
35         ../../../intern/guardedalloc
36         ../../../intern/elbeem/extern
37         ${ZLIB_INCLUDE_DIRS}
38 )
39
40 set(SRC
41         intern/MOD_armature.c
42         intern/MOD_array.c
43         intern/MOD_bevel.c
44         intern/MOD_boolean.c
45         intern/MOD_build.c
46         intern/MOD_cast.c
47         intern/MOD_cloth.c
48         intern/MOD_collision.c
49         intern/MOD_curve.c
50         intern/MOD_decimate.c
51         intern/MOD_displace.c
52         intern/MOD_edgesplit.c
53         intern/MOD_explode.c
54         intern/MOD_fluidsim.c
55         intern/MOD_fluidsim_util.c
56         intern/MOD_hook.c
57         intern/MOD_lattice.c
58         intern/MOD_mask.c
59         intern/MOD_meshdeform.c
60         intern/MOD_mirror.c
61         intern/MOD_multires.c
62         intern/MOD_none.c
63         intern/MOD_particleinstance.c
64         intern/MOD_particlesystem.c
65         intern/MOD_screw.c
66         intern/MOD_shapekey.c
67         intern/MOD_shrinkwrap.c
68         intern/MOD_simpledeform.c
69         intern/MOD_smoke.c
70         intern/MOD_smooth.c
71         intern/MOD_softbody.c
72         intern/MOD_solidify.c
73         intern/MOD_subsurf.c
74         intern/MOD_surface.c
75         intern/MOD_util.c
76         intern/MOD_uvproject.c
77         intern/MOD_warp.c
78         intern/MOD_wave.c
79
80         MOD_modifiertypes.h
81         intern/MOD_boolean_util.h
82         intern/MOD_fluidsim_util.h
83         intern/MOD_util.h
84 )
85
86 if(WITH_MOD_BOOLEAN)
87         add_definitions(-DWITH_MOD_BOOLEAN)
88         list(APPEND SRC
89                 intern/MOD_boolean_util.c
90         )
91         list(APPEND INC ../../../intern/bsp/extern)
92 endif()
93
94 if(WITH_MOD_DECIMATE)
95         add_definitions(-DWITH_MOD_DECIMATE)
96         list(APPEND INC ../../../intern/decimation/extern)
97 endif()
98
99 if(NOT WITH_MOD_FLUID)
100         add_definitions(-DDISABLE_ELBEEM)
101 endif()
102
103 blender_add_lib(bf_modifiers "${SRC}" "${INC}")