Add BLI_math_statistics, where stats tool shall be!
[blender.git] / source / blender / blenlib / 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 Beaurain.
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 set(INC
27         .
28         # ../blenkernel  # dont add this back!
29         ../makesdna
30         ../../../intern/guardedalloc
31         ../../../intern/atomic
32         ../../../extern/wcwidth
33         ../../../extern/Eigen3
34 )
35
36 set(INC_SYS
37         ${ZLIB_INCLUDE_DIRS}
38         ${FREETYPE_INCLUDE_DIRS}
39 )
40
41 set(SRC
42         intern/BLI_args.c
43         intern/BLI_array.c
44         intern/BLI_dial.c
45         intern/BLI_dynstr.c
46         intern/BLI_filelist.c
47         intern/BLI_ghash.c
48         intern/BLI_heap.c
49         intern/BLI_kdopbvh.c
50         intern/BLI_kdtree.c
51         intern/BLI_linklist.c
52         intern/BLI_memarena.c
53         intern/BLI_mempool.c
54         intern/DLRB_tree.c
55         intern/array_utils.c
56         intern/astar.c
57         intern/boxpack2d.c
58         intern/buffer.c
59         intern/callbacks.c
60         intern/convexhull2d.c
61         intern/dynlib.c
62         intern/easing.c
63         intern/edgehash.c
64         intern/endian_switch.c
65         intern/fileops.c
66         intern/fnmatch.c
67         intern/freetypefont.c
68         intern/graph.c
69         intern/gsqueue.c
70         intern/hash_md5.c
71         intern/hash_mm2a.c
72         intern/jitter.c
73         intern/lasso.c
74         intern/list_sort_impl.h
75         intern/listbase.c
76         intern/math_base.c
77         intern/math_base_inline.c
78         intern/math_bits_inline.c
79         intern/math_color.c
80         intern/math_color_blend_inline.c
81         intern/math_color_inline.c
82         intern/math_geom.c
83         intern/math_geom_inline.c
84         intern/math_interp.c
85         intern/math_matrix.c
86         intern/math_rotation.c
87         intern/math_solvers.c
88         intern/math_statistics.c
89         intern/math_vector.c
90         intern/math_vector_inline.c
91         intern/noise.c
92         intern/path_util.c
93         intern/polyfill2d.c
94         intern/polyfill2d_beautify.c
95         intern/quadric.c
96         intern/rand.c
97         intern/rct.c
98         intern/scanfill.c
99         intern/scanfill_utils.c
100         intern/smallhash.c
101         intern/sort.c
102         intern/sort_utils.c
103         intern/stack.c
104         intern/storage.c
105         intern/string.c
106         intern/string_cursor_utf8.c
107         intern/string_utf8.c
108         intern/system.c
109         intern/task.c
110         intern/threads.c
111         intern/time.c
112         intern/timecode.c
113         intern/uvproject.c
114         intern/voronoi.c
115         intern/voxel.c
116         intern/winstuff.c
117         intern/winstuff_dir.c
118
119         BLI_alloca.h
120         BLI_args.h
121         BLI_array.h
122         BLI_array_utils.h
123         BLI_astar.h
124         BLI_bitmap.h
125         BLI_blenlib.h
126         BLI_boxpack2d.h
127         BLI_buffer.h
128         BLI_callbacks.h
129         BLI_compiler_attrs.h
130         BLI_compiler_compat.h
131         BLI_compiler_typecheck.h
132         BLI_convexhull2d.h
133         BLI_dial.h
134         BLI_dlrbTree.h
135         BLI_dynlib.h
136         BLI_dynstr.h
137         BLI_easing.h
138         BLI_edgehash.h
139         BLI_endian_switch.h
140         BLI_endian_switch_inline.h
141         BLI_fileops.h
142         BLI_fileops_types.h
143         BLI_fnmatch.h
144         BLI_ghash.h
145         BLI_graph.h
146         BLI_gsqueue.h
147         BLI_hash_md5.h
148         BLI_hash_mm2a.h
149         BLI_heap.h
150         BLI_jitter.h
151         BLI_kdopbvh.h
152         BLI_kdtree.h
153         BLI_lasso.h
154         BLI_link_utils.h
155         BLI_linklist.h
156         BLI_linklist_stack.h
157         BLI_listbase.h
158         BLI_math.h
159         BLI_math_base.h
160         BLI_math_bits.h
161         BLI_math_color.h
162         BLI_math_color_blend.h
163         BLI_math_geom.h
164         BLI_math_inline.h
165         BLI_math_interp.h
166         BLI_math_matrix.h
167         BLI_math_rotation.h
168         BLI_math_solvers.h
169         BLI_math_statistics.h
170         BLI_math_vector.h
171         BLI_memarena.h
172         BLI_mempool.h
173         BLI_noise.h
174         BLI_path_util.h
175         BLI_polyfill2d.h
176         BLI_polyfill2d_beautify.h
177         BLI_quadric.h
178         BLI_rand.h
179         BLI_rect.h
180         BLI_scanfill.h
181         BLI_smallhash.h
182         BLI_sort.h
183         BLI_sort_utils.h
184         BLI_stack.h
185         BLI_stackdefines.h
186         BLI_strict_flags.h
187         BLI_string.h
188         BLI_string_cursor_utf8.h
189         BLI_string_utf8.h
190         BLI_sys_types.h
191         BLI_system.h
192         BLI_task.h
193         BLI_threads.h
194         BLI_timecode.h
195         BLI_utildefines.h
196         BLI_uvproject.h
197         BLI_vfontdata.h
198         BLI_voronoi.h
199         BLI_voxel.h
200         BLI_winstuff.h
201         PIL_time.h
202         PIL_time_utildefines.h
203 )
204
205 if(WITH_MEM_VALGRIND)
206         add_definitions(-DWITH_MEM_VALGRIND)
207 endif()
208
209 if(WIN32)
210         list(APPEND INC
211                 ../../../intern/utfconv
212         )
213 endif()
214
215 # no need to compile object files for inline headers.
216 set_source_files_properties(
217         intern/math_base_inline.c
218         intern/math_bits_inline.c
219         intern/math_color_blend_inline.c
220         intern/math_color_inline.c
221         intern/math_geom_inline.c
222         intern/math_vector_inline.c
223         PROPERTIES HEADER_FILE_ONLY TRUE
224 )
225
226 blender_add_lib(bf_blenlib "${SRC}" "${INC}" "${INC_SYS}")