Addes jpeg2000 support to cmake.
[blender-staging.git] / source / blender / src / CMakeLists.txt
1 # $Id$
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 
30   ../../../intern/guardedalloc ../../../intern/memutil
31   ../blenlib ../makesdna ../blenkernel
32   ../include ../../../intern/bmfont ../imbuf ../render/extern/include
33   ../../../intern/bsp/extern ../radiosity/extern/include
34   ../../../intern/decimation/extern ../blenloader ../python
35   ../../kernel/gen_system ../../../intern/SoundSystem ../readstreamglue
36   ../quicktime ../../../intern/elbeem/extern
37   ../../../intern/ghost ../../../intern/opennl/extern
38   ../nodes ../../../extern/glew/include ../gpu
39   ${PYTHON_INC}
40   ${SDL_INC}
41 )
42
43 IF(WITH_INTERNATIONAL)
44   SET(INC ${INC} ../ftfont)
45   ADD_DEFINITIONS(-DINTERNATIONAL)
46   ADD_DEFINITIONS(-DFTGL_STATIC_LIBRARY)
47 ENDIF(WITH_INTERNATIONAL)
48
49 IF(WITH_OPENEXR)
50   ADD_DEFINITIONS(-DWITH_OPENEXR)
51 ENDIF(WITH_OPENEXR)
52
53 IF(WITH_OPENJPEG)
54   ADD_DEFINITIONS(-DWITH_OPENJPEG)
55 ENDIF(WITH_OPENJPEG)
56
57 IF(WITH_QUICKTIME)
58   SET(INC ${INC} ${QUICKTIME_INC})
59   ADD_DEFINITIONS(-DWITH_QUICKTIME)
60 ENDIF(WITH_QUICKTIME)
61
62 IF(WITH_FFMPEG)
63   SET(INC ${INC} ${FFMPEG_INC})
64   ADD_DEFINITIONS(-DWITH_FFMPEG)
65 ENDIF(WITH_FFMPEG)
66
67 IF(WIN32)
68   SET(INC ${INC} ${PTHREADS_INC})
69 ENDIF(WIN32)
70
71 IF(WITH_VERSE)
72   SET(INC ${INC} ${VERSE_INC})
73   ADD_DEFINITIONS(-DWITH_VERSE)
74 ENDIF(WITH_VERSE)
75
76 # TODO buildinfo
77 IF(BF_BUILDINFO)
78   ADD_DEFINITIONS(-DNAN_BUILDINFO)
79 ENDIF(BF_BUILDINFO)
80
81 BLENDERLIB_NOLIST(src "${SRC}" "${INC}")
82
83 IF(WITH_VERSE)
84   ADD_DEPENDENCIES(src mkprot verse)
85 ENDIF(WITH_VERSE)
86
87 IF(NOT WITH_ELBEEM)
88   ADD_DEFINITIONS(-DDISABLE_ELBEEM)
89 ENDIF(NOT WITH_ELBEEM)