Merge of itasc branch. Project files, scons and cmake should be working. Makefile...
[blender.git] / source / blender / editors / CMakeLists.txt
1 # $Id: CMakeLists.txt 12931 2007-12-17 18:20:48Z theeth $
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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, 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 */*.c)
28
29 SET(INC ../windowmanager
30         ../editors/include
31         ../../../intern/guardedalloc ../../../intern/memutil
32         ../blenlib ../makesdna ../makesrna ../blenkernel
33         ../include ../imbuf ../render/extern/include
34         ../../../intern/bsp/extern
35         ../../../intern/decimation/extern ../blenloader ../python
36         ../../kernel/gen_system ../readstreamglue
37         ../../../intern/elbeem/extern
38         ../../../intern/ghost ../../../intern/opennl/extern ../../../extern/glew/include ../../../intern/smoke/extern
39         ../../../intern/audaspace/intern
40         ../nodes
41         ../gpu
42         ../blenfont
43         ../ikplugin
44 )
45
46 IF(WITH_GAMEENGINE)
47         ADD_DEFINITIONS(-DGAMEBLENDER)
48 ENDIF(WITH_GAMEENGINE)
49
50 IF(WITH_INTERNATIONAL)
51         ADD_DEFINITIONS(-DINTERNATIONAL)
52 ENDIF(WITH_INTERNATIONAL)
53
54 IF(WITH_OPENEXR)
55         ADD_DEFINITIONS(-DWITH_OPENEXR)
56 ENDIF(WITH_OPENEXR)
57
58 IF(WITH_OPENJPEG)
59         ADD_DEFINITIONS(-DWITH_OPENJPEG)
60 ENDIF(WITH_OPENJPEG)
61
62 IF(WITH_QUICKTIME)
63         SET(INC ${INC} ../quicktime ${QUICKTIME_INC})
64         ADD_DEFINITIONS(-DWITH_QUICKTIME)
65 ENDIF(WITH_QUICKTIME)
66
67 IF(WITH_FFMPEG)
68         SET(INC ${INC} ${FFMPEG_INC})
69         ADD_DEFINITIONS(-DWITH_FFMPEG)
70 ENDIF(WITH_FFMPEG)
71
72 IF(NOT WITH_ELBEEM)
73         ADD_DEFINITIONS(-DDISABLE_ELBEEM)
74 ENDIF(NOT WITH_ELBEEM)
75
76 IF(WITH_PYTHON)
77         SET(INC ${INC} ${PYTHON_INC})
78 ELSE(WITH_PYTHON)
79         ADD_DEFINITIONS(-DDISABLE_PYTHON)
80 ENDIF(WITH_PYTHON)
81
82 IF(WIN32)
83         SET(INC ${INC} ${PTHREADS_INC})
84 ENDIF(WIN32)
85
86 # TODO buildinfo
87 IF(BF_BUILDINFO)
88         ADD_DEFINITIONS(-DNAN_BUILDINFO)
89 ENDIF(BF_BUILDINFO)
90
91 BLENDERLIB_NOLIST(bf_editors "${SRC}" "${INC}")
92