Patch [#34373] Use i18n monospace font in Text editor and Python console
[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/ghost
31         ../../../intern/guardedalloc
32         ../../../extern/wcwidth
33 )
34
35 set(INC_SYS
36         ${ZLIB_INCLUDE_DIRS}
37         ${FREETYPE_INCLUDE_DIRS}
38 )
39
40 set(SRC
41         intern/BLI_args.c
42         intern/BLI_array.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/buffer.c
54         intern/callbacks.c
55         intern/cpu.c
56         intern/dynlib.c
57         intern/edgehash.c
58         intern/endian_switch.c
59         intern/fileops.c
60         intern/fnmatch.c
61         intern/freetypefont.c
62         intern/graph.c
63         intern/gsqueue.c
64         intern/jitter.c
65         intern/lasso.c
66         intern/listbase.c
67         intern/math_base.c
68         intern/math_base_inline.c
69         intern/math_color.c
70         intern/math_color_inline.c
71         intern/math_geom.c
72         intern/math_geom_inline.c
73         intern/math_interp.c
74         intern/math_matrix.c
75         intern/math_rotation.c
76         intern/math_vector.c
77         intern/math_vector_inline.c
78         intern/md5.c
79         intern/noise.c
80         intern/path_util.c
81         intern/quadric.c
82         intern/rand.c
83         intern/rct.c
84         intern/scanfill.c
85         intern/smallhash.c
86         intern/stack.c
87         intern/storage.c
88         intern/string.c
89         intern/string_cursor_utf8.c
90         intern/string_utf8.c
91         intern/threads.c
92         intern/time.c
93         intern/uvproject.c
94         intern/voronoi.c
95         intern/voxel.c
96         intern/winstuff.c
97
98         BLI_args.h
99         BLI_array.h
100         BLI_bitmap.h
101         BLI_blenlib.h
102         BLI_buffer.h
103         BLI_boxpack2d.h
104         BLI_callbacks.h
105         BLI_cpu.h
106         BLI_dlrbTree.h
107         BLI_dynlib.h
108         BLI_dynstr.h
109         BLI_edgehash.h
110         BLI_endian_switch.h
111         BLI_endian_switch_inline.h
112         BLI_fileops.h
113         BLI_fileops_types.h
114         BLI_fnmatch.h
115         BLI_ghash.h
116         BLI_graph.h
117         BLI_gsqueue.h
118         BLI_heap.h
119         BLI_jitter.h
120         BLI_kdopbvh.h
121         BLI_kdtree.h
122         BLI_lasso.h
123         BLI_linklist.h
124         BLI_listbase.h
125         BLI_math.h
126         BLI_math_base.h
127         BLI_math_color.h
128         BLI_math_geom.h
129         BLI_math_inline.h
130         BLI_math_interp.h
131         BLI_math_matrix.h
132         BLI_math_rotation.h
133         BLI_math_vector.h
134         BLI_md5.h
135         BLI_memarena.h
136         BLI_mempool.h
137         BLI_noise.h
138         BLI_path_util.h
139         BLI_quadric.h
140         BLI_rand.h
141         BLI_rect.h
142         BLI_scanfill.h
143         BLI_smallhash.h
144         BLI_stack.h
145         BLI_string.h
146         BLI_string_cursor_utf8.h
147         BLI_string_utf8.h
148         BLI_threads.h
149         BLI_utildefines.h
150         BLI_uvproject.h
151         BLI_vfontdata.h
152         BLI_voronoi.h
153         BLI_voxel.h
154         BLI_winstuff.h
155         PIL_time.h
156 )
157
158 if(WITH_BINRELOC)
159         list(APPEND INC_SYS
160                 ${BINRELOC_INCLUDE_DIRS}
161         )
162         add_definitions(-DWITH_BINRELOC)
163 endif()
164
165 if(WITH_OPENMP)
166         add_definitions(-DPARALLEL=1)
167 endif()
168
169 if(WIN32)
170         list(APPEND INC
171                 ../../../intern/utfconv
172         )
173 endif()
174
175 blender_add_lib(bf_blenlib "${SRC}" "${INC}" "${INC_SYS}")
176
177 if(MSVC)
178         # Quiet warning about inline math library files that do not export symbols.
179         # (normally you'd exclude from project, but we still want to see the files in MSVC)
180         set_target_properties(bf_blenlib PROPERTIES STATIC_LIBRARY_FLAGS /ignore:4221)
181 endif()