- use list append in more places (preferred method since its faster)
[blender.git] / source / blender / blenkernel / 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 FILE(GLOB SRC intern/*.c)
28
29 SET(INC 
30         .
31         ../avi
32         ../blenlib
33         ../blenloader
34         ../editors/include
35         ../gpu
36         ../ikplugin
37         ../imbuf
38         ../makesdna
39         ../makesrna
40         ../modifiers
41         ../nodes
42         ../render/extern/include
43         ../../../extern/glew/include
44         ../../../intern/audaspace/intern
45         ../../../intern/bsp/extern ../blenfont
46         ../../../intern/decimation/extern
47         ../../../intern/elbeem/extern
48         ../../../intern/guardedalloc
49         ../../../intern/iksolver/extern
50         ../../../intern/memutil
51         ../../../intern/opennl/extern
52         ../../../intern/smoke/extern
53     ../../../source/blender/windowmanager # XXX - BAD LEVEL CALL WM_api.h
54         ${ZLIB_INC}
55 )
56
57
58 ADD_DEFINITIONS(-DGLEW_STATIC)
59
60 IF(WITH_BULLET)
61         LIST(APPEND INC ../../../extern/bullet2/src)
62         ADD_DEFINITIONS(-DUSE_BULLET)
63 ENDIF(WITH_BULLET)
64
65 IF(WITH_IMAGE_OPENEXR)
66         ADD_DEFINITIONS(-DWITH_OPENEXR)
67 ENDIF(WITH_IMAGE_OPENEXR)
68
69 IF(WITH_IMAGE_TIFF)
70         ADD_DEFINITIONS(-DWITH_TIFF)
71 ENDIF(WITH_IMAGE_TIFF)
72
73 IF(WITH_IMAGE_OPENJPEG)
74         ADD_DEFINITIONS(-DWITH_OPENJPEG)
75 ENDIF(WITH_IMAGE_OPENJPEG)
76
77 IF(WITH_IMAGE_DDS)
78         ADD_DEFINITIONS(-DWITH_DDS)
79 ENDIF(WITH_IMAGE_DDS)
80
81 IF(WITH_IMAGE_CINEON)
82         ADD_DEFINITIONS(-DWITH_CINEON)
83 ENDIF(WITH_IMAGE_CINEON)
84
85 IF(WITH_IMAGE_HDR)
86         ADD_DEFINITIONS(-DWITH_HDR)
87 ENDIF(WITH_IMAGE_HDR)
88
89 IF(WITH_QUICKTIME)
90         LIST(APPEND INC ../quicktime)
91         LIST(APPEND INC ${QUICKTIME_INC})
92         ADD_DEFINITIONS(-DWITH_QUICKTIME)
93 ENDIF(WITH_QUICKTIME)
94
95 IF(WITH_FFMPEG)
96         LIST(APPEND INC ${FFMPEG_INC})
97         ADD_DEFINITIONS(-DWITH_FFMPEG)
98 ENDIF(WITH_FFMPEG)
99
100 IF(WITH_LCMS)
101         LIST(APPEND INC ${LCMS_INCLUDE_DIR})
102         ADD_DEFINITIONS(-DWITH_LCMS)
103 ENDIF(WITH_LCMS)
104
105 IF(WITH_PYTHON)
106         LIST(APPEND INC ../python)
107         LIST(APPEND INC ${PYTHON_INC})
108 ELSE(WITH_PYTHON)
109         ADD_DEFINITIONS(-DDISABLE_PYTHON)
110 ENDIF(WITH_PYTHON)
111
112 IF(WITH_OPENMP)
113         ADD_DEFINITIONS(-DPARALLEL=1)
114 ENDIF(WITH_OPENMP)
115
116 IF(NOT WITH_FLUID)
117         ADD_DEFINITIONS(-DDISABLE_ELBEEM)
118 ENDIF(NOT WITH_FLUID)
119
120 IF(WITH_LZO)
121         LIST(APPEND INC ../../../extern/lzo/minilzo)
122         ADD_DEFINITIONS(-DWITH_LZO)
123 ENDIF(WITH_LZO)
124
125 IF(WITH_LZMA)
126         LIST(APPEND INC ../../../extern/lzma)
127         ADD_DEFINITIONS(-DWITH_LZMA)
128 ENDIF(WITH_LZMA)
129
130 IF(WIN32)
131         LIST(APPEND INC ${PTHREADS_INC})
132 ENDIF(WIN32)
133
134 BLENDERLIB(bf_blenkernel "${SRC}" "${INC}")