merge with trunk r38787
[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/DLRB_tree.c
53         intern/boxpack2d.c
54         intern/bpath.c
55         intern/callbacks.c
56         intern/cpu.c
57         intern/dynlib.c
58         intern/edgehash.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/listbase.c
66         intern/math_base.c
67         intern/math_base_inline.c
68         intern/math_color.c
69         intern/math_geom.c
70         intern/math_geom_inline.c
71         intern/math_matrix.c
72         intern/math_rotation.c
73         intern/math_vector.c
74         intern/math_vector_inline.c
75         intern/noise.c
76         intern/path_util.c
77         intern/pbvh.c
78         intern/rand.c
79         intern/rct.c
80         intern/scanfill.c
81         intern/storage.c
82         intern/string.c
83         intern/threads.c
84         intern/time.c
85         intern/uvproject.c
86         intern/voxel.c
87         intern/winstuff.c
88
89         BLI_args.h
90         BLI_blenlib.h
91         BLI_boxpack2d.h
92         BLI_bpath.h
93         BLI_callbacks.h
94         BLI_cpu.h
95         BLI_dlrbTree.h
96         BLI_dynlib.h
97         BLI_dynstr.h
98         BLI_edgehash.h
99         BLI_editVert.h
100         BLI_fileops.h
101         BLI_fnmatch.h
102         BLI_ghash.h
103         BLI_graph.h
104         BLI_gsqueue.h
105         BLI_heap.h
106         BLI_jitter.h
107         BLI_kdopbvh.h
108         BLI_kdtree.h
109         BLI_linklist.h
110         BLI_listbase.h
111         BLI_math.h
112         BLI_math_base.h
113         BLI_math_color.h
114         BLI_math_geom.h
115         BLI_math_inline.h
116         BLI_math_matrix.h
117         BLI_math_rotation.h
118         BLI_math_vector.h
119         BLI_memarena.h
120         BLI_mempool.h
121         BLI_noise.h
122         BLI_path_util.h
123         BLI_pbvh.h
124         BLI_rand.h
125         BLI_rect.h
126         BLI_scanfill.h
127         BLI_storage.h
128         BLI_storage_types.h
129         BLI_string.h
130         BLI_threads.h
131         BLI_utildefines.h
132         BLI_uvproject.h
133         BLI_vfontdata.h
134         BLI_voxel.h
135         BLI_winstuff.h
136         PIL_time.h
137         intern/dynamiclist.h
138 )
139
140 if(WITH_BINRELOC)
141         list(APPEND INC_SYS
142                 ${BINRELOC_INCLUDE_DIRS}
143         )
144         add_definitions(-DWITH_BINRELOC)
145 endif()
146
147 if(WITH_OPENMP)
148         add_definitions(-DPARALLEL=1)
149 endif()
150
151 blender_add_lib(bf_blenlib "${SRC}" "${INC}" "${INC_SYS}")