Merge branch 'blender2.7'
[blender.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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 # ***** END GPL LICENSE BLOCK *****
20
21 set(INC
22         .
23         intern
24         ../blenkernel
25         ../blenlib
26         ../blenfont
27         ../depsgraph
28         ../makesdna
29         ../makesrna
30         ../bmesh
31         ../render/extern/include
32         ../../../intern/elbeem/extern
33         ../../../intern/guardedalloc
34         ../../../intern/eigen
35 )
36
37 set(INC_SYS
38         ${ZLIB_INCLUDE_DIRS}
39 )
40
41 set(SRC
42         intern/MOD_armature.c
43         intern/MOD_array.c
44         intern/MOD_bevel.c
45         intern/MOD_boolean.c
46         intern/MOD_build.c
47         intern/MOD_cast.c
48         intern/MOD_cloth.c
49         intern/MOD_collision.c
50         intern/MOD_correctivesmooth.c
51         intern/MOD_curve.c
52         intern/MOD_datatransfer.c
53         intern/MOD_decimate.c
54         intern/MOD_displace.c
55         intern/MOD_dynamicpaint.c
56         intern/MOD_edgesplit.c
57         intern/MOD_explode.c
58         intern/MOD_fluidsim.c
59         intern/MOD_fluidsim_util.c
60         intern/MOD_hook.c
61         intern/MOD_laplaciandeform.c
62         intern/MOD_laplaciansmooth.c
63         intern/MOD_lattice.c
64         intern/MOD_mask.c
65         intern/MOD_meshcache.c
66         intern/MOD_meshcache_mdd.c
67         intern/MOD_meshcache_pc2.c
68         intern/MOD_meshcache_util.c
69         intern/MOD_meshdeform.c
70         intern/MOD_meshsequencecache.c
71         intern/MOD_mirror.c
72         intern/MOD_multires.c
73         intern/MOD_none.c
74         intern/MOD_normal_edit.c
75         intern/MOD_ocean.c
76         intern/MOD_particleinstance.c
77         intern/MOD_particlesystem.c
78         intern/MOD_remesh.c
79         intern/MOD_screw.c
80         intern/MOD_shapekey.c
81         intern/MOD_shrinkwrap.c
82         intern/MOD_simpledeform.c
83         intern/MOD_skin.c
84         intern/MOD_smoke.c
85         intern/MOD_smooth.c
86         intern/MOD_softbody.c
87         intern/MOD_solidify.c
88         intern/MOD_subsurf.c
89         intern/MOD_surface.c
90         intern/MOD_surfacedeform.c
91         intern/MOD_triangulate.c
92         intern/MOD_util.c
93         intern/MOD_uvproject.c
94         intern/MOD_uvwarp.c
95         intern/MOD_warp.c
96         intern/MOD_wave.c
97         intern/MOD_weighted_normal.c
98         intern/MOD_weightvg_util.c
99         intern/MOD_weightvgedit.c
100         intern/MOD_weightvgmix.c
101         intern/MOD_weightvgproximity.c
102         intern/MOD_wireframe.c
103
104         MOD_modifiertypes.h
105         intern/MOD_fluidsim_util.h
106         intern/MOD_meshcache_util.h
107         intern/MOD_util.h
108         intern/MOD_weightvg_util.h
109 )
110
111 if(WITH_ALEMBIC)
112         add_definitions(-DWITH_ALEMBIC)
113         list(APPEND INC
114                 ../alembic
115         )
116 endif()
117
118 if(WITH_MOD_REMESH)
119         add_definitions(-DWITH_MOD_REMESH)
120         list(APPEND INC
121                 ../../../intern/dualcon
122         )
123 endif()
124
125 if(WITH_MOD_FLUID)
126         add_definitions(-DWITH_MOD_FLUID)
127 endif()
128
129 if(WITH_MOD_OCEANSIM)
130         add_definitions(-DWITH_OCEANSIM)
131 endif()
132
133 if(WITH_BULLET)
134         add_definitions(-DWITH_BULLET)
135 endif()
136
137 if(WITH_INTERNATIONAL)
138         add_definitions(-DWITH_INTERNATIONAL)
139 endif()
140
141 # So we can have special tricks in modifier system.
142 add_definitions(${GL_DEFINITIONS})
143
144 blender_add_lib(bf_modifiers "${SRC}" "${INC}" "${INC_SYS}")