* Merged changes in the trunk up to revision 33492.
[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 REMOVE_STRICT_FLAGS()
29
30 SET(INC 
31         intern/include
32         extern/include
33         ../blenlib
34         ../blenloader
35         ../makesdna
36         ../makesrna
37         ../blenkernel
38         ../imbuf
39         ../../kernel/gen_messaging
40         ../../../intern/smoke/extern
41         ../../../intern/guardedalloc
42         ../freestyle
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         extern/include/RE_pipeline.h
81         extern/include/RE_raytrace.h
82         extern/include/RE_render_ext.h
83         extern/include/RE_shader_ext.h
84         intern/include/envmap.h
85         intern/include/gammaCorrectionTables.h
86         intern/include/initrender.h
87         intern/include/occlusion.h
88         intern/include/pixelblending.h
89         intern/include/pixelshading.h
90         intern/include/pointdensity.h
91         intern/include/raycounter.h
92         intern/include/rayobject.h
93         intern/include/render_types.h
94         intern/include/rendercore.h
95         intern/include/renderdatabase.h
96         intern/include/renderpipeline.h
97         intern/include/shadbuf.h
98         intern/include/shading.h
99         intern/include/sss.h
100         intern/include/strand.h
101         intern/include/sunsky.h
102         intern/include/texture.h
103         intern/include/volume_precache.h
104         intern/include/volumetric.h
105         intern/include/voxeldata.h
106         intern/include/zbuf.h
107         intern/raytrace/bvh.h
108         intern/raytrace/rayobject_hint.h
109         intern/raytrace/rayobject_rtbuild.h
110         intern/raytrace/reorganize.h
111         intern/raytrace/svbvh.h
112         intern/raytrace/vbvh.h
113 )
114
115 IF(WITH_IMAGE_OPENEXR)
116         ADD_DEFINITIONS(-DWITH_OPENEXR)
117 ENDIF(WITH_IMAGE_OPENEXR)
118
119 IF(WITH_CODEC_QUICKTIME)
120         LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
121         ADD_DEFINITIONS(-DWITH_QUICKTIME)
122 ENDIF(WITH_CODEC_QUICKTIME)
123
124 IF(APPLE)
125         IF(CMAKE_OSX_ARCHITECTURES MATCHES "i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
126                 SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mfpmath=sse")
127                 SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mfpmath=sse")
128         ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES "i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
129 ENDIF(APPLE)
130
131 BLENDERLIB_NOLIST(bf_render "${SRC}" "${INC}")