3916047ff32b19bd3c4081e56ff59a0845b1d87e
[blender.git] / extern / carve / 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 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Jacques Beaurai, Erwin Coumans
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 # NOTE: This file is automatically generated by bundle.sh script
27 #       If you're doing changes in this file, please update template
28 #       in that script too
29
30 set(INC
31         include
32 )
33
34 set(INC_SYS
35 )
36
37 set(SRC
38         lib/aabb.cpp
39         lib/carve.cpp
40         lib/convex_hull.cpp
41         lib/csg_collector.cpp
42         lib/csg.cpp
43         lib/edge.cpp
44         lib/face.cpp
45         lib/geom2d.cpp
46         lib/geom3d.cpp
47         lib/intersect_classify_edge.cpp
48         lib/intersect_classify_group.cpp
49         lib/intersect.cpp
50         lib/intersect_debug.cpp
51         lib/intersect_face_division.cpp
52         lib/intersect_group.cpp
53         lib/intersect_half_classify_group.cpp
54         lib/intersection.cpp
55         lib/math.cpp
56         lib/mesh.cpp
57         lib/octree.cpp
58         lib/pointset.cpp
59         lib/polyhedron.cpp
60         lib/polyline.cpp
61         lib/tag.cpp
62         lib/timing.cpp
63         lib/triangulator.cpp
64
65         lib/csg_collector.hpp
66         lib/csg_data.hpp
67         lib/csg_detail.hpp
68         lib/intersect_classify_common.hpp
69         lib/intersect_classify_common_impl.hpp
70         lib/intersect_common.hpp
71         lib/intersect_debug.hpp
72
73         include/carve/aabb.hpp
74         include/carve/aabb_impl.hpp
75         include/carve/carve.hpp
76         include/carve/cbrt.h
77         include/carve/classification.hpp
78         include/carve/collection.hpp
79         include/carve/collection_types.hpp
80         include/carve/collection/unordered/boost_impl.hpp
81         include/carve/collection/unordered/fallback_impl.hpp
82         include/carve/collection/unordered.hpp
83         include/carve/collection/unordered/libstdcpp_impl.hpp
84         include/carve/collection/unordered/std_impl.hpp
85         include/carve/collection/unordered/tr1_impl.hpp
86         include/carve/collection/unordered/vcpp_impl.hpp
87         include/carve/colour.hpp
88         include/carve/convex_hull.hpp
89         include/carve/csg.hpp
90         include/carve/csg_triangulator.hpp
91         include/carve/debug_hooks.hpp
92         include/carve/djset.hpp
93         include/carve/edge_decl.hpp
94         include/carve/edge_impl.hpp
95         include/carve/exact.hpp
96         include/carve/face_decl.hpp
97         include/carve/face_impl.hpp
98         include/carve/faceloop.hpp
99         include/carve/geom2d.hpp
100         include/carve/geom3d.hpp
101         include/carve/geom.hpp
102         include/carve/geom_impl.hpp
103         include/carve/gnu_cxx.h
104         include/carve/heap.hpp
105         include/carve/input.hpp
106         include/carve/interpolator.hpp
107         include/carve/intersection.hpp
108         include/carve/iobj.hpp
109         include/carve/kd_node.hpp
110         include/carve/math_constants.hpp
111         include/carve/math.hpp
112         include/carve/matrix.hpp
113         include/carve/mesh.hpp
114         include/carve/mesh_impl.hpp
115         include/carve/mesh_ops.hpp
116         include/carve/mesh_simplify.hpp
117         include/carve/octree_decl.hpp
118         include/carve/octree_impl.hpp
119         include/carve/pointset_decl.hpp
120         include/carve/pointset.hpp
121         include/carve/pointset_impl.hpp
122         include/carve/pointset_iter.hpp
123         include/carve/poly_decl.hpp
124         include/carve/polyhedron_base.hpp
125         include/carve/polyhedron_decl.hpp
126         include/carve/polyhedron_impl.hpp
127         include/carve/poly.hpp
128         include/carve/poly_impl.hpp
129         include/carve/polyline_decl.hpp
130         include/carve/polyline.hpp
131         include/carve/polyline_impl.hpp
132         include/carve/polyline_iter.hpp
133         include/carve/rescale.hpp
134         include/carve/rtree.hpp
135         include/carve/spacetree.hpp
136         include/carve/tag.hpp
137         include/carve/timing.hpp
138         include/carve/tree.hpp
139         include/carve/triangulator.hpp
140         include/carve/triangulator_impl.hpp
141         include/carve/util.hpp
142         include/carve/vcpp_config.h
143         include/carve/vector.hpp
144         include/carve/vertex_decl.hpp
145         include/carve/vertex_impl.hpp
146         include/carve/win32.h
147 )
148
149 if(WITH_BOOST)
150         if(NOT MSVC)
151                 # Boost is setting as preferred collections library in the Carve code when using MSVC compiler
152                 add_definitions(
153                         -DHAVE_BOOST_UNORDERED_COLLECTIONS
154                 )
155         endif()
156
157         add_definitions(
158                 -DCARVE_SYSTEM_BOOST
159         )
160
161         list(APPEND INC
162                 ${BOOST_INCLUDE_DIR}
163         )
164 endif()
165
166 blender_add_lib(extern_carve "${SRC}" "${INC}" "${INC_SYS}")