2 # ***** BEGIN GPL LICENSE BLOCK *****
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.
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.
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.
18 # The Original Code is Copyright (C) 2006, Blender Foundation
19 # All rights reserved.
21 # The Original Code is: all of this file.
23 # Contributor(s): Jacques Beaurain.
25 # ***** END GPL LICENSE BLOCK *****
27 FILE(GLOB SRC intern/source/*.c intern/raytrace/*.cpp)
30 intern/include ../../../intern/guardedalloc ../blenlib ../makesdna
31 extern/include ../blenkernel ../imbuf
32 ../include ../../kernel/gen_messaging ../blenloader
33 ../../../intern/smoke/extern
38 SET(INC ${INC} ${PTHREADS_INC})
42 ADD_DEFINITIONS(-DWITH_OPENEXR)
46 SET(INC ${INC} ../quicktime ${QUICKTIME_INC})
47 ADD_DEFINITIONS(-DWITH_QUICKTIME)
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")
57 IF(WITH_RAYOPTIMIZATION)
58 ADD_DEFINITIONS(-D__SSE__)
59 ADD_DEFINITIONS(-D__MMX__)
60 ENDIF(WITH_RAYOPTIMIZATION)
63 #if env['OURPLATFORM']=='linux2':
66 BLENDERLIB_NOLIST(blender_render "${SRC}" "${INC}")
67 #env.BlenderLib ( libname = 'blender_render', sources = sources, includes = Split(incs), defines=defs, libtype='core', priority=45, compileflags=cflags )