svn merge -r 16320:16369 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / blender / nodes / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16 #
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Jacques Beaurain.
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 FILE(GLOB SRC intern/*.c intern/CMP_nodes/*.c intern/SHD_nodes/*.c)
27
28 SET(INC 
29   . ../../../intern/guardedalloc ../include ../blenlib ../makesdna
30   ../python ../render/extern/include ../../../intern/decimation/extern
31   ../imbuf ../avi ../../../intern/elbeem/extern
32   ../../../intern/iksolver/extern ../blenloader ../quicktime
33   ../blenkernel ../../../extern/glew/include ../gpu
34   ${SDL_INC}
35   ${ZLIB_INC}
36   ${PYTHON_INC}
37 )
38
39 IF(WITH_VERSE)
40   ADD_DEFINITIONS(-DWITH_VERSE)
41   SET(INC ${INC} ${VERSE_INC})
42 ENDIF(WITH_VERSE)
43
44 IF(WITH_OPENEXR)
45   ADD_DEFINITIONS(-DWITH_OPENEXR)
46 ENDIF(WITH_OPENEXR)
47
48 IF(WITH_QUICKTIME)
49   SET(INC ${INC} ${QUICKTIME_INC})
50   ADD_DEFINITIONS(-DWITH_QUICKTIME)
51 ENDIF(WITH_QUICKTIME)
52
53 IF(WITH_FFMPEG)
54   SET(INC ${INC} ${FFMPEG_INC})
55   ADD_DEFINITIONS(-DWITH_FFMPEG)
56 ENDIF(WITH_FFMPEG)
57
58 ADD_DEFINITIONS(-DWITH_CCGSUBSURF)
59
60 BLENDERLIB(bf_nodes "${SRC}" "${INC}")
61
62 IF(WITH_VERSE)
63   ADD_DEPENDENCIES(bf_nodes mkprot verse)
64 ENDIF(WITH_VERSE)
65
66 IF(WITH_INTERNATIONAL)
67    ADD_DEFINITIONS(-DWITH_FREETYPE2)
68 ENDIF(WITH_INTERNATIONAL)
69