* make CMake compile again (after pynodes addition). Patch provided by skejoe.
[blender.git] / source / blender / nodes / CMakeLists.txt
1 # ***** BEGIN GPL/BL DUAL 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. The Blender
7 # Foundation also sells licenses for use in proprietary software under
8 # the Blender License.  See http://www.blender.org/BL/ for information
9 # about this.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software Foundation,
18 # Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19 #
20 # The Original Code is Copyright (C) 2006, Blender Foundation
21 # All rights reserved.
22 #
23 # The Original Code is: all of this file.
24 #
25 # Contributor(s): Jacques Beaurain.
26 #
27 # ***** END GPL/BL DUAL LICENSE BLOCK *****
28
29 FILE(GLOB SRC intern/*.c intern/CMP_nodes/*.c intern/SHD_nodes/*.c)
30
31 SET(INC 
32   . ../../../intern/guardedalloc ../include ../blenlib ../makesdna
33   ../python ../render/extern/include ../../../intern/decimation/extern
34   ../imbuf ../avi ../../../intern/elbeem/extern
35   ../../../intern/iksolver/extern ../blenloader ../quicktime
36   ../blenkernel
37   ${SDL_INC}
38   ${ZLIB_INC}
39   ${PYTHON_INC}
40 )
41
42 IF(WITH_VERSE)
43   ADD_DEFINITIONS(-DWITH_VERSE)
44   SET(INC ${INC} ${VERSE_INC})
45 ENDIF(WITH_VERSE)
46
47 IF(WITH_OPENEXR)
48   ADD_DEFINITIONS(-DWITH_OPENEXR)
49 ENDIF(WITH_OPENEXR)
50
51 IF(WITH_QUICKTIME)
52   SET(INC ${INC} ${QUICKTIME_INC})
53   ADD_DEFINITIONS(-DWITH_QUICKTIME)
54 ENDIF(WITH_QUICKTIME)
55
56 IF(WITH_FFMPEG)
57   SET(INC ${INC} ${FFMPEG_INC})
58   ADD_DEFINITIONS(-DWITH_FFMPEG)
59 ENDIF(WITH_FFMPEG)
60
61 ADD_DEFINITIONS(-DWITH_CCGSUBSURF)
62
63 BLENDERLIB(bf_nodes "${SRC}" "${INC}")
64
65 IF(WITH_VERSE)
66   ADD_DEPENDENCIES(bf_nodes mkprot verse)
67 ENDIF(WITH_VERSE)
68
69 IF(WITH_INTERNATIONAL)
70    ADD_DEFINITIONS(-DWITH_FREETYPE2)
71 ENDIF(WITH_INTERNATIONAL)
72