spaces -> tabs, (4 spaces == 1 tab, only for white space preceding text)
[blender.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 ../../../intern/guardedalloc ../blenlib ../makesdna
31         extern/include ../blenkernel ../imbuf
32         ../include ../../kernel/gen_messaging ../blenloader
33         ../../../intern/smoke/extern
34         ../makesrna
35 )
36
37 IF(WIN32)
38         SET(INC ${INC} ${PTHREADS_INC})
39 ENDIF(WIN32)
40
41 IF(WITH_OPENEXR)
42         ADD_DEFINITIONS(-DWITH_OPENEXR)
43 ENDIF(WITH_OPENEXR)
44
45 IF(WITH_QUICKTIME)
46         SET(INC ${INC} ../quicktime ${QUICKTIME_INC})
47         ADD_DEFINITIONS(-DWITH_QUICKTIME)
48 ENDIF(WITH_QUICKTIME)
49
50 IF(APPLE)
51         IF(CMAKE_OSX_ARCHITECTURES MATCHES "i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
52                 SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mfpmath=sse")
53                 SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mfpmath=sse")
54         ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES "i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
55 ENDIF(APPLE)
56
57 IF(WITH_RAYOPTIMIZATION)
58         ADD_DEFINITIONS(-D__SSE__)
59 ENDIF(WITH_RAYOPTIMIZATION)
60
61 #TODO
62 #if env['OURPLATFORM']=='linux2':
63 #    cflags='-pthread'
64
65 BLENDERLIB_NOLIST(blender_render "${SRC}" "${INC}")
66 #env.BlenderLib ( libname = 'blender_render', sources = sources, includes = Split(incs), defines=defs, libtype='core', priority=45, compileflags=cflags )