svn merge -r40034:40051 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / blender / blenlib / CMakeLists.txt
1 # $Id$
2 # ***** BEGIN GPL LICENSE BLOCK *****
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software Foundation,
16 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 #
18 # The Original Code is Copyright (C) 2006, Blender Foundation
19 # All rights reserved.
20 #
21 # The Original Code is: all of this file.
22 #
23 # Contributor(s): Jacques Beaurain.
24 #
25 # ***** END GPL LICENSE BLOCK *****
26
27 set(INC 
28         .
29         ../blenkernel
30         ../blenloader
31         ../gpu
32         ../makesdna
33         ../../../intern/ghost
34         ../../../intern/guardedalloc
35 )
36
37 set(INC_SYS
38         ${ZLIB_INCLUDE_DIRS}
39         ${FREETYPE_INCLUDE_DIRS}
40 )
41
42 set(SRC
43         intern/BLI_args.c
44         intern/BLI_dynstr.c
45         intern/BLI_ghash.c
46         intern/BLI_heap.c
47         intern/BLI_kdopbvh.c
48         intern/BLI_kdtree.c
49         intern/BLI_linklist.c
50         intern/BLI_memarena.c
51         intern/BLI_mempool.c
52         intern/BLI_cellalloc.c
53         intern/DLRB_tree.c
54         intern/boxpack2d.c
55         intern/bpath.c
56         intern/callbacks.c
57         intern/cpu.c
58         intern/dynlib.c
59         intern/edgehash.c
60         intern/fileops.c
61         intern/fnmatch.c
62         intern/freetypefont.c
63         intern/graph.c
64         intern/gsqueue.c
65         intern/jitter.c
66         intern/listbase.c
67         intern/math_base.c
68         intern/math_base_inline.c
69         intern/math_color.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/noise.c
77         intern/path_util.c
78         intern/pbvh.c
79         intern/rand.c
80         intern/rct.c
81         intern/scanfill.c
82         intern/storage.c
83         intern/string.c
84         intern/threads.c
85         intern/time.c
86         intern/uvproject.c
87         intern/voxel.c
88         intern/winstuff.c
89
90         BLI_array.h
91         BLI_cellalloc.h
92         BLI_smallhash.h
93         BLI_sparsemap.h
94         BLI_args.h
95         BLI_blenlib.h
96         BLI_boxpack2d.h
97         BLI_bpath.h
98         BLI_callbacks.h
99         BLI_cpu.h
100         BLI_dlrbTree.h
101         BLI_dynlib.h
102         BLI_dynstr.h
103         BLI_edgehash.h
104         BLI_editVert.h
105         BLI_fileops.h
106         BLI_fnmatch.h
107         BLI_ghash.h
108         BLI_graph.h
109         BLI_gsqueue.h
110         BLI_heap.h
111         BLI_jitter.h
112         BLI_kdopbvh.h
113         BLI_kdtree.h
114         BLI_linklist.h
115         BLI_listbase.h
116         BLI_math.h
117         BLI_math_base.h
118         BLI_math_color.h
119         BLI_math_geom.h
120         BLI_math_inline.h
121         BLI_math_matrix.h
122         BLI_math_rotation.h
123         BLI_math_vector.h
124         BLI_memarena.h
125         BLI_mempool.h
126         BLI_noise.h
127         BLI_path_util.h
128         BLI_pbvh.h
129         BLI_rand.h
130         BLI_rect.h
131         BLI_scanfill.h
132         BLI_storage.h
133         BLI_storage_types.h
134         BLI_string.h
135         BLI_threads.h
136         BLI_utildefines.h
137         BLI_uvproject.h
138         BLI_vfontdata.h
139         BLI_voxel.h
140         BLI_winstuff.h
141         PIL_time.h
142         intern/dynamiclist.h
143 )
144
145 if(WITH_BINRELOC)
146         list(APPEND INC_SYS
147                 ${BINRELOC_INCLUDE_DIRS}
148         )
149         add_definitions(-DWITH_BINRELOC)
150 endif()
151
152 if(WITH_OPENMP)
153         add_definitions(-DPARALLEL=1)
154 endif()
155
156 blender_add_lib(bf_blenlib "${SRC}" "${INC}" "${INC_SYS}")