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)
39 ../../kernel/gen_messaging
40 ../../../intern/smoke/extern
41 ../../../intern/guardedalloc
45 LIST(APPEND INC ${PTHREADS_INC})
48 IF(WITH_IMAGE_OPENEXR)
49 ADD_DEFINITIONS(-DWITH_OPENEXR)
50 ENDIF(WITH_IMAGE_OPENEXR)
53 LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
54 ADD_DEFINITIONS(-DWITH_QUICKTIME)
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")
64 BLENDERLIB_NOLIST(bf_render "${SRC}" "${INC}")