- added back zlib include (needed for win32).
[blender-staging.git] / source / blender / render / 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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 intern/source/*.c intern/raytrace/*.cpp)
28
29 SET(INC 
30         intern/include
31         extern/include
32         ../blenlib
33         ../blenloader
34         ../makesdna
35         ../makesrna
36         ../blenkernel
37         ../imbuf
38         ../include
39         ../../kernel/gen_messaging
40         ../../../intern/smoke/extern
41         ../../../intern/guardedalloc
42 )
43
44 IF(WIN32)
45         LIST(APPEND INC ${PTHREADS_INC})
46 ENDIF(WIN32)
47
48 IF(WITH_IMAGE_OPENEXR)
49         ADD_DEFINITIONS(-DWITH_OPENEXR)
50 ENDIF(WITH_IMAGE_OPENEXR)
51
52 IF(WITH_QUICKTIME)
53         LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
54         ADD_DEFINITIONS(-DWITH_QUICKTIME)
55 ENDIF(WITH_QUICKTIME)
56
57 IF(APPLE)
58         IF(CMAKE_OSX_ARCHITECTURES MATCHES "i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
59                 LIST(APPEND CMAKE_C_FLAGS_RELEASE -mfpmath=sse)
60                 LIST(APPEND CMAKE_CXX_FLAGS_RELEASE -mfpmath=sse)
61         ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES "i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
62 ENDIF(APPLE)
63
64 BLENDERLIB_NOLIST(bf_render "${SRC}" "${INC}")