UI: Refactor timecode functions into BLI_timecode
[blender.git] / source / blender / render / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Jacques Beaurain.
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26
27 set(INC 
28         extern/include
29         intern/include
30         ../blenfont
31         ../blenkernel
32         ../blenlib
33         ../imbuf
34         ../makesdna
35         ../makesrna
36         ../../../intern/guardedalloc
37         ../../../intern/mikktspace
38         ../../../intern/smoke/extern
39 )
40
41 set(INC_SYS
42
43 )
44
45 set(SRC
46         intern/raytrace/rayobject.cpp
47         intern/raytrace/rayobject_empty.cpp
48         intern/raytrace/rayobject_octree.cpp
49         intern/raytrace/rayobject_raycounter.cpp
50         intern/raytrace/rayobject_svbvh.cpp
51         intern/raytrace/rayobject_blibvh.cpp
52         intern/raytrace/rayobject_instance.cpp
53         intern/raytrace/rayobject_qbvh.cpp
54         intern/raytrace/rayobject_rtbuild.cpp
55         intern/raytrace/rayobject_vbvh.cpp
56         intern/source/bake.c
57         intern/source/convertblender.c
58         intern/source/envmap.c
59         intern/source/external_engine.c
60         intern/source/gammaCorrectionTables.c
61         intern/source/imagetexture.c
62         intern/source/initrender.c
63         intern/source/multires_bake.c
64         intern/source/occlusion.c
65         intern/source/pipeline.c
66         intern/source/pixelblending.c
67         intern/source/pixelshading.c
68         intern/source/pointdensity.c
69         intern/source/rayshade.c
70         intern/source/rendercore.c
71         intern/source/render_result.c
72         intern/source/render_texture.c
73         intern/source/renderdatabase.c
74         intern/source/shadbuf.c
75         intern/source/shadeinput.c
76         intern/source/shadeoutput.c
77         intern/source/sss.c
78         intern/source/strand.c
79         intern/source/sunsky.c
80         intern/source/texture_ocean.c
81         intern/source/volume_precache.c
82         intern/source/volumetric.c
83         intern/source/voxeldata.c
84         intern/source/zbuf.c
85
86         extern/include/RE_engine.h
87         extern/include/RE_multires_bake.h
88         extern/include/RE_pipeline.h
89         extern/include/RE_render_ext.h
90         extern/include/RE_shader_ext.h
91         intern/include/envmap.h
92         intern/include/gammaCorrectionTables.h
93         intern/include/initrender.h
94         intern/include/occlusion.h
95         intern/include/pixelblending.h
96         intern/include/pixelshading.h
97         intern/include/pointdensity.h
98         intern/include/raycounter.h
99         intern/include/rayobject.h
100         intern/include/rayintersection.h
101         intern/include/render_types.h
102         intern/include/render_result.h
103         intern/include/rendercore.h
104         intern/include/renderdatabase.h
105         intern/include/renderpipeline.h
106         intern/include/shadbuf.h
107         intern/include/shading.h
108         intern/include/sss.h
109         intern/include/strand.h
110         intern/include/sunsky.h
111         intern/include/texture.h
112         intern/include/texture_ocean.h
113         intern/include/volume_precache.h
114         intern/include/volumetric.h
115         intern/include/voxeldata.h
116         intern/include/zbuf.h
117         intern/raytrace/bvh.h
118         intern/raytrace/rayobject_hint.h
119         intern/raytrace/rayobject_internal.h
120         intern/raytrace/rayobject_rtbuild.h
121         intern/raytrace/reorganize.h
122         intern/raytrace/svbvh.h
123         intern/raytrace/vbvh.h
124 )
125
126 if(WITH_PYTHON)
127         add_definitions(-DWITH_PYTHON)
128         list(APPEND INC
129                 ../python
130         )
131 endif()
132
133 if(WITH_IMAGE_OPENEXR)
134         add_definitions(-DWITH_OPENEXR)
135 endif()
136
137 if(WITH_MOD_SMOKE)
138         add_definitions(-DWITH_SMOKE)
139 endif()
140
141 if(WITH_FREESTYLE)
142         list(APPEND INC
143                 ../freestyle
144         )
145         add_definitions(-DWITH_FREESTYLE)
146 endif()
147
148 if(WITH_CODEC_QUICKTIME)
149         list(APPEND INC
150                 ../quicktime
151         )
152         list(APPEND INC_SYS
153                 ${QUICKTIME_INCLUDE_DIRS}
154         )
155         add_definitions(-DWITH_QUICKTIME)
156 endif()
157
158 if(WITH_GAMEENGINE)
159         add_definitions(-DWITH_GAMEENGINE)
160 endif()
161
162 if(WITH_INTERNATIONAL)
163         add_definitions(-DWITH_INTERNATIONAL)
164 endif()
165
166 if(APPLE)
167         # SSE math is enabled by default on x86_64
168         if(CMAKE_OSX_ARCHITECTURES MATCHES "i386")
169                 set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mfpmath=sse")
170                 set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mfpmath=sse")
171         endif()
172 endif()
173
174 blender_add_lib_nolist(bf_render "${SRC}" "${INC}" "${INC_SYS}")