code cleanup: remove editmesh code left hanging around thats already been ported...
[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
29         ../blenloader
30         ../gpu
31         ../makesdna
32         ../../../intern/ghost
33         ../../../intern/guardedalloc
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_dynstr.c
44         intern/BLI_ghash.c
45         intern/BLI_heap.c
46         intern/BLI_kdopbvh.c
47         intern/BLI_kdtree.c
48         intern/BLI_linklist.c
49         intern/BLI_memarena.c
50         intern/BLI_mempool.c
51         intern/DLRB_tree.c
52         intern/boxpack2d.c
53         intern/bpath.c
54         intern/callbacks.c
55         intern/cpu.c
56         intern/dynlib.c
57         intern/edgehash.c
58         intern/fileops.c
59         intern/fnmatch.c
60         intern/freetypefont.c
61         intern/graph.c
62         intern/gsqueue.c
63         intern/jitter.c
64         intern/lasso.c
65         intern/listbase.c
66         intern/math_base.c
67         intern/math_base_inline.c
68         intern/math_color.c
69         intern/math_color_inline.c
70         intern/math_geom.c
71         intern/math_geom_inline.c
72         intern/math_matrix.c
73         intern/math_rotation.c
74         intern/math_vector.c
75         intern/math_vector_inline.c
76         intern/md5.c
77         intern/noise.c
78         intern/path_util.c
79         intern/pbvh.c
80         intern/rand.c
81         intern/rct.c
82         intern/scanfill.c
83         intern/smallhash.c
84         intern/storage.c
85         intern/string.c
86         intern/string_cursor_utf8.c
87         intern/string_utf8.c
88         intern/threads.c
89         intern/time.c
90         intern/uvproject.c
91         intern/voxel.c
92         intern/winstuff.c
93
94         BLI_args.h
95         BLI_array.h
96         BLI_bitmap.h
97         BLI_blenlib.h
98         BLI_boxpack2d.h
99         BLI_bpath.h
100         BLI_callbacks.h
101         BLI_cpu.h
102         BLI_dlrbTree.h
103         BLI_dynlib.h
104         BLI_dynstr.h
105         BLI_edgehash.h
106         BLI_fileops.h
107         BLI_fileops_types.h
108         BLI_fnmatch.h
109         BLI_ghash.h
110         BLI_graph.h
111         BLI_gsqueue.h
112         BLI_heap.h
113         BLI_jitter.h
114         BLI_kdopbvh.h
115         BLI_kdtree.h
116         BLI_lasso.h
117         BLI_linklist.h
118         BLI_listbase.h
119         BLI_math.h
120         BLI_math_base.h
121         BLI_math_color.h
122         BLI_math_geom.h
123         BLI_math_inline.h
124         BLI_math_matrix.h
125         BLI_math_rotation.h
126         BLI_math_vector.h
127         BLI_md5.h
128         BLI_memarena.h
129         BLI_mempool.h
130         BLI_noise.h
131         BLI_path_util.h
132         BLI_pbvh.h
133         BLI_rand.h
134         BLI_rect.h
135         BLI_scanfill.h
136         BLI_smallhash.h
137         BLI_string.h
138         BLI_string_cursor_utf8.h
139         BLI_string_utf8.h
140         BLI_threads.h
141         BLI_utildefines.h
142         BLI_uvproject.h
143         BLI_vfontdata.h
144         BLI_voxel.h
145         BLI_winstuff.h
146         PIL_time.h
147 )
148
149 if(WITH_BINRELOC)
150         list(APPEND INC_SYS
151                 ${BINRELOC_INCLUDE_DIRS}
152         )
153         add_definitions(-DWITH_BINRELOC)
154 endif()
155
156 if(WITH_OPENMP)
157         add_definitions(-DPARALLEL=1)
158 endif()
159
160 if(WITH_XDG_USER_DIRS)
161         add_definitions(-DWITH_XDG_USER_DIRS)
162 endif()
163
164 if(WIN32)
165         list(APPEND INC
166                 ../../../intern/utfconv
167         )
168 endif()
169
170 blender_add_lib(bf_blenlib "${SRC}" "${INC}" "${INC_SYS}")