include headers in cmake source, added a script to check for consistency, reporting...
[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         ../makesdna
30         ../blenkernel
31         ../gpu
32         ../../../intern/ghost
33         ../../../intern/guardedalloc
34         ${ZLIB_INC}
35         ${FREETYPE_INCLUDE_DIRS}
36 )
37
38 SET(SRC
39         intern/BLI_args.c
40         intern/BLI_dynstr.c
41         intern/BLI_ghash.c
42         intern/BLI_heap.c
43         intern/BLI_kdopbvh.c
44         intern/BLI_kdtree.c
45         intern/BLI_linklist.c
46         intern/BLI_memarena.c
47         intern/BLI_mempool.c
48         intern/DLRB_tree.c
49         intern/boxpack2d.c
50         intern/bpath.c
51         intern/cpu.c
52         intern/dynlib.c
53         intern/edgehash.c
54         intern/fileops.c
55         intern/fnmatch.c
56         intern/freetypefont.c
57         intern/graph.c
58         intern/gsqueue.c
59         intern/jitter.c
60         intern/listbase.c
61         intern/math_base.c
62         intern/math_base_inline.c
63         intern/math_color.c
64         intern/math_geom.c
65         intern/math_geom_inline.c
66         intern/math_matrix.c
67         intern/math_rotation.c
68         intern/math_vector.c
69         intern/math_vector_inline.c
70         intern/noise.c
71         intern/path_util.c
72         intern/pbvh.c
73         intern/rand.c
74         intern/rct.c
75         intern/scanfill.c
76         intern/storage.c
77         intern/string.c
78         intern/threads.c
79         intern/time.c
80         intern/uvproject.c
81         intern/voxel.c
82         intern/winstuff.c
83
84         BLI_args.h
85         BLI_blenlib.h
86         BLI_boxpack2d.h
87         BLI_bpath.h
88         BLI_cpu.h
89         BLI_dlrbTree.h
90         BLI_dynstr.h
91         BLI_edgehash.h
92         BLI_editVert.h
93         BLI_fileops.h
94         BLI_fnmatch.h
95         BLI_ghash.h
96         BLI_graph.h
97         BLI_gsqueue.h
98         BLI_heap.h
99         BLI_jitter.h
100         BLI_kdopbvh.h
101         BLI_kdtree.h
102         BLI_linklist.h
103         BLI_listbase.h
104         BLI_math.h
105         BLI_math_base.h
106         BLI_math_color.h
107         BLI_math_geom.h
108         BLI_math_inline.h
109         BLI_math_matrix.h
110         BLI_math_rotation.h
111         BLI_math_vector.h
112         BLI_memarena.h
113         BLI_mempool.h
114         BLI_noise.h
115         BLI_path_util.h
116         BLI_pbvh.h
117         BLI_rand.h
118         BLI_rect.h
119         BLI_scanfill.h
120         BLI_storage.h
121         BLI_storage_types.h
122         BLI_string.h
123         BLI_threads.h
124         BLI_uvproject.h
125         BLI_vfontdata.h
126         BLI_voxel.h
127         BLI_winstuff.h
128         PIL_dynlib.h
129         PIL_time.h
130         intern/BLI_callbacks.h
131         intern/dynamiclist.h
132 )
133
134 IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
135         LIST(APPEND INC "${BINRELOC_INC}")
136 ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
137
138 IF(WITH_OPENMP)
139         ADD_DEFINITIONS(-DPARALLEL=1)
140 ENDIF(WITH_OPENMP)
141
142 BLENDERLIB(bf_blenlib "${SRC}" "${INC}")