2.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r17434...
[blender.git] / source / blender / python / 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)
27
28 SET(INC 
29   . ../../../intern/guardedalloc ../blenlib ../makesdna ../makesrna
30   ../blenkernel ../editors/include ${PYTHON_INC}
31 )
32
33 IF(WITH_VERSE)
34   ADD_DEFINITIONS(-DWITH_VERSE)
35   SET(INC ${INC} ${VERSE_INC})
36 ENDIF(WITH_VERSE)
37
38 IF(WITH_OPENEXR)
39   ADD_DEFINITIONS(-DWITH_OPENEXR)
40 ENDIF(WITH_OPENEXR)
41
42 IF(WITH_QUICKTIME)
43   SET(INC ${INC} ${QUICKTIME_INC})
44   ADD_DEFINITIONS(-DWITH_QUICKTIME)
45 ENDIF(WITH_QUICKTIME)
46
47 IF(WITH_FFMPEG)
48   SET(INC ${INC} ${FFMPEG_INC})
49   ADD_DEFINITIONS(-DWITH_FFMPEG)
50 ENDIF(WITH_FFMPEG)
51
52 ADD_DEFINITIONS(-DWITH_CCGSUBSURF)
53
54 BLENDERLIB(bf_python "${SRC}" "${INC}")
55
56 IF(WITH_VERSE)
57   ADD_DEPENDENCIES(bf_nodes mkprot verse)
58 ENDIF(WITH_VERSE)
59
60 IF(WITH_INTERNATIONAL)
61    ADD_DEFINITIONS(-DWITH_FREETYPE2)
62 ENDIF(WITH_INTERNATIONAL)
63