1b6411e4f64acbcd436cd524357c3cb18c24ccb6
[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         ../gpu
35         ../ikplugin
36         ../imbuf
37         ../makesdna
38         ../makesrna
39         ../modifiers
40         ../nodes
41         ../editors/include
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 ${QUICKTIME_INC})
91         ADD_DEFINITIONS(-DWITH_QUICKTIME)
92 ENDIF(WITH_QUICKTIME)
93
94 IF(WITH_FFMPEG)
95         LIST(APPEND INC ${FFMPEG_INC})
96         ADD_DEFINITIONS(-DWITH_FFMPEG)
97 ENDIF(WITH_FFMPEG)
98
99 IF(WITH_LCMS)
100         LIST(APPEND INC ${LCMS_INCLUDE_DIR})
101         ADD_DEFINITIONS(-DWITH_LCMS)
102 ENDIF(WITH_LCMS)
103
104 IF(WITH_PYTHON)
105         LIST(APPEND INC ../python ${PYTHON_INC})
106 ELSE(WITH_PYTHON)
107         ADD_DEFINITIONS(-DDISABLE_PYTHON)
108 ENDIF(WITH_PYTHON)
109
110 IF(WITH_OPENMP)
111         ADD_DEFINITIONS(-DPARALLEL=1)
112 ENDIF(WITH_OPENMP)
113
114 IF(NOT WITH_FLUID)
115         ADD_DEFINITIONS(-DDISABLE_ELBEEM)
116 ENDIF(NOT WITH_FLUID)
117
118 IF(WITH_JACK)
119         ADD_DEFINITIONS(-DWITH_JACK)
120 ENDIF(WITH_JACK)
121
122 IF(WITH_LZO)
123         LIST(APPEND INC ../../../extern/lzo/minilzo)
124         ADD_DEFINITIONS(-DWITH_LZO)
125 ENDIF(WITH_LZO)
126
127 IF(WITH_LZMA)
128         LIST(APPEND INC ../../../extern/lzma)
129         ADD_DEFINITIONS(-DWITH_LZMA)
130 ENDIF(WITH_LZMA)
131
132 IF(WIN32)
133         LIST(APPEND INC ${PTHREADS_INC})
134 ENDIF(WIN32)
135
136 BLENDERLIB(bf_blenkernel "${SRC}" "${INC}")