Added some missing directory includes for CMake. Still some linker errors to resolve.
[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 ../../../intern/bmfont ../imbuf ../render/extern/include
34   ../../../intern/bsp/extern ../radiosity/extern/include
35   ../../../intern/decimation/extern ../blenloader ../python
36   ../../kernel/gen_system ../../../intern/SoundSystem ../readstreamglue
37   ../quicktime ../../../intern/elbeem/extern
38   ../../../intern/ghost ../../../intern/opennl/extern ../../../extern/glew/include
39   ../nodes
40   ../gpu
41   ${PYTHON_INC}
42   ${SDL_INC}
43 )
44
45 IF(WITH_INTERNATIONAL)
46   SET(INC ${INC} ../ftfont)
47   ADD_DEFINITIONS(-DINTERNATIONAL)
48   ADD_DEFINITIONS(-DFTGL_STATIC_LIBRARY)
49 ENDIF(WITH_INTERNATIONAL)
50
51 IF(WITH_OPENEXR)
52   ADD_DEFINITIONS(-DWITH_OPENEXR)
53 ENDIF(WITH_OPENEXR)
54
55 IF(WITH_QUICKTIME)
56   SET(INC ${INC} ${QUICKTIME_INC})
57   ADD_DEFINITIONS(-DWITH_QUICKTIME)
58 ENDIF(WITH_QUICKTIME)
59
60 IF(WITH_FFMPEG)
61   SET(INC ${INC} ${FFMPEG_INC})
62   ADD_DEFINITIONS(-DWITH_FFMPEG)
63 ENDIF(WITH_FFMPEG)
64
65 IF(WIN32)
66   SET(INC ${INC} ${PTHREADS_INC})
67 ENDIF(WIN32)
68
69 IF(WITH_VERSE)
70   SET(INC ${INC} ${VERSE_INC})
71   ADD_DEFINITIONS(-DWITH_VERSE)
72 ENDIF(WITH_VERSE)
73
74 # TODO buildinfo
75 IF(BF_BUILDINFO)
76   ADD_DEFINITIONS(-DNAN_BUILDINFO)
77 ENDIF(BF_BUILDINFO)
78
79 BLENDERLIB_NOLIST(bf_editors "${SRC}" "${INC}")
80
81 IF(WITH_VERSE)
82   ADD_DEPENDENCIES(bf_editors mkprot verse)
83 ENDIF(WITH_VERSE)
84