f2da8f4d13e37b8102872218034b1385163c9140
[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 # remove warning until render branch merged.
28 STRING(REGEX REPLACE "-Wunused-parameter" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
29
30 SET(INC 
31         intern/include
32         extern/include
33         ../blenlib
34         ../blenloader
35         ../makesdna
36         ../makesrna
37         ../blenkernel
38         ../imbuf
39         ../include
40         ../../kernel/gen_messaging
41         ../../../intern/smoke/extern
42         ../../../intern/guardedalloc
43 )
44
45 SET(SRC
46         intern/raytrace/rayobject.cpp
47         intern/raytrace/rayobject_qbvh.cpp
48         intern/raytrace/rayobject_rtbuild.cpp
49         intern/raytrace/rayobject_svbvh.cpp
50         intern/raytrace/rayobject_vbvh.cpp
51         intern/source/convertblender.c
52         intern/source/envmap.c
53         intern/source/gammaCorrectionTables.c
54         intern/source/imagetexture.c
55         intern/source/initrender.c
56         intern/source/occlusion.c
57         intern/source/pipeline.c
58         intern/source/pixelblending.c
59         intern/source/pixelshading.c
60         intern/source/pointdensity.c
61         intern/source/rayobject_blibvh.c
62         intern/source/rayobject_instance.c
63         intern/source/rayobject_octree.c
64         intern/source/rayobject_raycounter.c
65         intern/source/rayshade.c
66         intern/source/rendercore.c
67         intern/source/renderdatabase.c
68         intern/source/shadbuf.c
69         intern/source/shadeinput.c
70         intern/source/shadeoutput.c
71         intern/source/sss.c
72         intern/source/strand.c
73         intern/source/sunsky.c
74         intern/source/texture.c
75         intern/source/volume_precache.c
76         intern/source/volumetric.c
77         intern/source/voxeldata.c
78         intern/source/zbuf.c
79 )
80
81 IF(WIN32)
82         LIST(APPEND INC ${PTHREADS_INC})
83 ENDIF(WIN32)
84
85 IF(WITH_IMAGE_OPENEXR)
86         ADD_DEFINITIONS(-DWITH_OPENEXR)
87 ENDIF(WITH_IMAGE_OPENEXR)
88
89 IF(WITH_QUICKTIME)
90         LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
91         ADD_DEFINITIONS(-DWITH_QUICKTIME)
92 ENDIF(WITH_QUICKTIME)
93
94 IF(APPLE)
95         IF(CMAKE_OSX_ARCHITECTURES MATCHES "i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
96                 SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mfpmath=sse")
97                 SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mfpmath=sse")
98         ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES "i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
99 ENDIF(APPLE)
100
101 BLENDERLIB_NOLIST(bf_render "${SRC}" "${INC}")