3b76b3403e70d12bfdeff9e8c7bf634ab1758bfa
[blender.git] / intern / cycles / kernel / CMakeLists.txt
1 remove_extra_strict_flags()
2
3 set(INC
4         ..
5 )
6
7 set(INC_SYS
8
9 )
10
11 set(SRC_CPU_KERNELS
12         kernels/cpu/kernel.cpp
13         kernels/cpu/kernel_sse2.cpp
14         kernels/cpu/kernel_sse3.cpp
15         kernels/cpu/kernel_sse41.cpp
16         kernels/cpu/kernel_avx.cpp
17         kernels/cpu/kernel_avx2.cpp
18         kernels/cpu/kernel_split.cpp
19         kernels/cpu/kernel_split_sse2.cpp
20         kernels/cpu/kernel_split_sse3.cpp
21         kernels/cpu/kernel_split_sse41.cpp
22         kernels/cpu/kernel_split_avx.cpp
23         kernels/cpu/kernel_split_avx2.cpp
24         kernels/cpu/filter.cpp
25         kernels/cpu/filter_sse2.cpp
26         kernels/cpu/filter_sse3.cpp
27         kernels/cpu/filter_sse41.cpp
28         kernels/cpu/filter_avx.cpp
29         kernels/cpu/filter_avx2.cpp
30 )
31
32 set(SRC_CUDA_KERNELS
33         kernels/cuda/kernel.cu
34         kernels/cuda/kernel_split.cu
35         kernels/cuda/filter.cu
36 )
37
38 set(SRC_OPENCL_KERNELS
39         kernels/opencl/kernel.cl
40         kernels/opencl/kernel_state_buffer_size.cl
41         kernels/opencl/kernel_split.cl
42         kernels/opencl/kernel_data_init.cl
43         kernels/opencl/kernel_path_init.cl
44         kernels/opencl/kernel_queue_enqueue.cl
45         kernels/opencl/kernel_scene_intersect.cl
46         kernels/opencl/kernel_lamp_emission.cl
47         kernels/opencl/kernel_do_volume.cl
48         kernels/opencl/kernel_indirect_background.cl
49         kernels/opencl/kernel_shader_setup.cl
50         kernels/opencl/kernel_shader_sort.cl
51         kernels/opencl/kernel_shader_eval.cl
52         kernels/opencl/kernel_holdout_emission_blurring_pathtermination_ao.cl
53         kernels/opencl/kernel_subsurface_scatter.cl
54         kernels/opencl/kernel_direct_lighting.cl
55         kernels/opencl/kernel_shadow_blocked_ao.cl
56         kernels/opencl/kernel_shadow_blocked_dl.cl
57         kernels/opencl/kernel_enqueue_inactive.cl
58         kernels/opencl/kernel_next_iteration_setup.cl
59         kernels/opencl/kernel_indirect_subsurface.cl
60         kernels/opencl/kernel_buffer_update.cl
61         kernels/opencl/filter.cl
62 )
63
64 set(SRC_BVH_HEADERS
65         bvh/bvh.h
66         bvh/bvh_nodes.h
67         bvh/bvh_shadow_all.h
68         bvh/bvh_local.h
69         bvh/bvh_traversal.h
70         bvh/bvh_types.h
71         bvh/bvh_volume.h
72         bvh/bvh_volume_all.h
73         bvh/qbvh_nodes.h
74         bvh/qbvh_shadow_all.h
75         bvh/qbvh_local.h
76         bvh/qbvh_traversal.h
77         bvh/qbvh_volume.h
78         bvh/qbvh_volume_all.h
79 )
80
81 set(SRC_HEADERS
82         kernel_accumulate.h
83         kernel_bake.h
84         kernel_camera.h
85         kernel_compat_cpu.h
86         kernel_compat_cuda.h
87         kernel_compat_opencl.h
88         kernel_differential.h
89         kernel_emission.h
90         kernel_film.h
91         kernel_globals.h
92         kernel_jitter.h
93         kernel_light.h
94         kernel_math.h
95         kernel_montecarlo.h
96         kernel_passes.h
97         kernel_path.h
98         kernel_path_branched.h
99         kernel_path_common.h
100         kernel_path_state.h
101         kernel_path_surface.h
102         kernel_path_subsurface.h
103         kernel_path_volume.h
104         kernel_projection.h
105         kernel_queues.h
106         kernel_random.h
107         kernel_shader.h
108         kernel_shadow.h
109         kernel_subsurface.h
110         kernel_textures.h
111         kernel_types.h
112         kernel_volume.h
113         kernel_work_stealing.h
114 )
115
116 set(SRC_KERNELS_CPU_HEADERS
117         kernel.h
118         kernels/cpu/kernel_cpu.h
119         kernels/cpu/kernel_cpu_impl.h
120         kernels/cpu/kernel_cpu_image.h
121         kernels/cpu/filter_cpu.h
122         kernels/cpu/filter_cpu_impl.h
123 )
124
125 set(SRC_KERNELS_CUDA_HEADERS
126         kernels/cuda/kernel_config.h
127         kernels/cuda/kernel_cuda_image.h
128 )
129
130 set(SRC_KERNELS_OPENCL_HEADERS
131         kernels/opencl/kernel_split_function.h
132         kernels/opencl/kernel_opencl_image.h
133 )
134
135 set(SRC_CLOSURE_HEADERS
136         closure/alloc.h
137         closure/bsdf.h
138         closure/bsdf_ashikhmin_velvet.h
139         closure/bsdf_diffuse.h
140         closure/bsdf_diffuse_ramp.h
141         closure/bsdf_microfacet.h
142         closure/bsdf_microfacet_multi.h
143         closure/bsdf_microfacet_multi_impl.h
144         closure/bsdf_oren_nayar.h
145         closure/bsdf_phong_ramp.h
146         closure/bsdf_reflection.h
147         closure/bsdf_refraction.h
148         closure/bsdf_toon.h
149         closure/bsdf_transparent.h
150         closure/bsdf_util.h
151         closure/bsdf_ashikhmin_shirley.h
152         closure/bsdf_hair.h
153         closure/bssrdf.h
154         closure/emissive.h
155         closure/volume.h
156         closure/bsdf_principled_diffuse.h
157         closure/bsdf_principled_sheen.h
158 )
159
160 set(SRC_SVM_HEADERS
161         svm/svm.h
162         svm/svm_attribute.h
163         svm/svm_bevel.h
164         svm/svm_blackbody.h
165         svm/svm_bump.h
166         svm/svm_camera.h
167         svm/svm_closure.h
168         svm/svm_convert.h
169         svm/svm_checker.h
170         svm/svm_color_util.h
171         svm/svm_brick.h
172         svm/svm_displace.h
173         svm/svm_fresnel.h
174         svm/svm_wireframe.h
175         svm/svm_wavelength.h
176         svm/svm_gamma.h
177         svm/svm_brightness.h
178         svm/svm_geometry.h
179         svm/svm_gradient.h
180         svm/svm_hsv.h
181         svm/svm_image.h
182         svm/svm_invert.h
183         svm/svm_light_path.h
184         svm/svm_magic.h
185         svm/svm_mapping.h
186         svm/svm_math.h
187         svm/svm_math_util.h
188         svm/svm_mix.h
189         svm/svm_musgrave.h
190         svm/svm_noise.h
191         svm/svm_noisetex.h
192         svm/svm_normal.h
193         svm/svm_ramp.h
194         svm/svm_ramp_util.h
195         svm/svm_sepcomb_hsv.h
196         svm/svm_sepcomb_vector.h
197         svm/svm_sky.h
198         svm/svm_tex_coord.h
199         svm/svm_texture.h
200         svm/svm_types.h
201         svm/svm_value.h
202         svm/svm_vector_transform.h
203         svm/svm_voronoi.h
204         svm/svm_voxel.h
205         svm/svm_wave.h
206 )
207
208 set(SRC_GEOM_HEADERS
209         geom/geom.h
210         geom/geom_attribute.h
211         geom/geom_curve.h
212         geom/geom_curve_intersect.h
213         geom/geom_motion_curve.h
214         geom/geom_motion_triangle.h
215         geom/geom_motion_triangle_intersect.h
216         geom/geom_motion_triangle_shader.h
217         geom/geom_object.h
218         geom/geom_patch.h
219         geom/geom_primitive.h
220         geom/geom_subd_triangle.h
221         geom/geom_triangle.h
222         geom/geom_triangle_intersect.h
223         geom/geom_volume.h
224 )
225
226 set(SRC_FILTER_HEADERS
227         filter/filter.h
228         filter/filter_defines.h
229         filter/filter_features.h
230         filter/filter_features_sse.h
231         filter/filter_kernel.h
232         filter/filter_nlm_cpu.h
233         filter/filter_nlm_gpu.h
234         filter/filter_prefilter.h
235         filter/filter_reconstruction.h
236         filter/filter_transform.h
237         filter/filter_transform_gpu.h
238         filter/filter_transform_sse.h
239 )
240
241 set(SRC_UTIL_HEADERS
242         ../util/util_atomic.h
243         ../util/util_color.h
244         ../util/util_defines.h
245         ../util/util_half.h
246         ../util/util_hash.h
247         ../util/util_math.h
248         ../util/util_math_fast.h
249         ../util/util_math_intersect.h
250         ../util/util_math_float2.h
251         ../util/util_math_float3.h
252         ../util/util_math_float4.h
253         ../util/util_math_int2.h
254         ../util/util_math_int3.h
255         ../util/util_math_int4.h
256         ../util/util_math_matrix.h
257         ../util/util_rect.h
258         ../util/util_static_assert.h
259         ../util/util_transform.h
260         ../util/util_texture.h
261         ../util/util_types.h
262         ../util/util_types_float2.h
263         ../util/util_types_float2_impl.h
264         ../util/util_types_float3.h
265         ../util/util_types_float3_impl.h
266         ../util/util_types_float4.h
267         ../util/util_types_float4_impl.h
268         ../util/util_types_int2.h
269         ../util/util_types_int2_impl.h
270         ../util/util_types_int3.h
271         ../util/util_types_int3_impl.h
272         ../util/util_types_int4.h
273         ../util/util_types_int4_impl.h
274         ../util/util_types_uchar2.h
275         ../util/util_types_uchar2_impl.h
276         ../util/util_types_uchar3.h
277         ../util/util_types_uchar3_impl.h
278         ../util/util_types_uchar4.h
279         ../util/util_types_uchar4_impl.h
280         ../util/util_types_uint2.h
281         ../util/util_types_uint2_impl.h
282         ../util/util_types_uint3.h
283         ../util/util_types_uint3_impl.h
284         ../util/util_types_uint4.h
285         ../util/util_types_uint4_impl.h
286         ../util/util_types_vector3.h
287         ../util/util_types_vector3_impl.h
288 )
289
290 set(SRC_SPLIT_HEADERS
291         split/kernel_branched.h
292         split/kernel_buffer_update.h
293         split/kernel_data_init.h
294         split/kernel_direct_lighting.h
295         split/kernel_do_volume.h
296         split/kernel_enqueue_inactive.h
297         split/kernel_holdout_emission_blurring_pathtermination_ao.h
298         split/kernel_indirect_background.h
299         split/kernel_indirect_subsurface.h
300         split/kernel_lamp_emission.h
301         split/kernel_next_iteration_setup.h
302         split/kernel_path_init.h
303         split/kernel_queue_enqueue.h
304         split/kernel_scene_intersect.h
305         split/kernel_shader_setup.h
306         split/kernel_shader_sort.h
307         split/kernel_shader_eval.h
308         split/kernel_shadow_blocked_ao.h
309         split/kernel_shadow_blocked_dl.h
310         split/kernel_split_common.h
311         split/kernel_split_data.h
312         split/kernel_split_data_types.h
313         split/kernel_subsurface_scatter.h
314 )
315
316 # CUDA module
317
318 if(WITH_CYCLES_CUDA_BINARIES)
319         # 32 bit or 64 bit
320         if(CUDA_64_BIT_DEVICE_CODE)
321                 set(CUDA_BITS 64)
322         else()
323                 set(CUDA_BITS 32)
324         endif()
325
326         # CUDA version
327         execute_process(COMMAND ${CUDA_NVCC_EXECUTABLE} "--version" OUTPUT_VARIABLE NVCC_OUT)
328         string(REGEX REPLACE ".*release ([0-9]+)\\.([0-9]+).*" "\\1" CUDA_VERSION_MAJOR "${NVCC_OUT}")
329         string(REGEX REPLACE ".*release ([0-9]+)\\.([0-9]+).*" "\\2" CUDA_VERSION_MINOR "${NVCC_OUT}")
330         set(CUDA_VERSION "${CUDA_VERSION_MAJOR}${CUDA_VERSION_MINOR}")
331
332         # warn for other versions
333         if(CUDA_VERSION MATCHES "80" OR CUDA_VERSION MATCHES "90")
334         else()
335                 message(WARNING
336                         "CUDA version ${CUDA_VERSION_MAJOR}.${CUDA_VERSION_MINOR} detected, "
337                         "build may succeed but only CUDA 8.0 is officially supported")
338         endif()
339
340         # build for each arch
341         set(cuda_sources kernels/cuda/kernel.cu kernels/cuda/kernel_split.cu
342                 ${SRC_HEADERS}
343                 ${SRC_KERNELS_CUDA_HEADERS}
344                 ${SRC_BVH_HEADERS}
345                 ${SRC_SVM_HEADERS}
346                 ${SRC_GEOM_HEADERS}
347                 ${SRC_CLOSURE_HEADERS}
348                 ${SRC_UTIL_HEADERS}
349         )
350         set(cuda_filter_sources kernels/cuda/filter.cu
351                 ${SRC_HEADERS}
352                 ${SRC_KERNELS_CUDA_HEADERS}
353                 ${SRC_FILTER_HEADERS}
354                 ${SRC_UTIL_HEADERS}
355         )
356         set(cuda_cubins)
357
358         macro(CYCLES_CUDA_KERNEL_ADD arch name flags sources experimental)
359                 set(cuda_cubin ${name}_${arch}.cubin)
360                 set(cuda_kernel_src "/kernels/cuda/${name}.cu")
361
362                 set(cuda_flags
363                         -D CCL_NAMESPACE_BEGIN=
364                         -D CCL_NAMESPACE_END=
365                         -D NVCC
366                         -m ${CUDA_BITS}
367                         -I ${CMAKE_CURRENT_SOURCE_DIR}/..
368                         -I ${CMAKE_CURRENT_SOURCE_DIR}/kernels/cuda
369                         --use_fast_math
370                         -o ${CMAKE_CURRENT_BINARY_DIR}/${cuda_cubin})
371
372                 if(${experimental})
373                         set(cuda_flags ${cuda_flags} -D __KERNEL_EXPERIMENTAL__)
374                         set(name ${name}_experimental)
375                 endif()
376
377                 if(WITH_CYCLES_DEBUG)
378                         set(cuda_flags ${cuda_flags} -D __KERNEL_DEBUG__)
379                 endif()
380
381                 if(WITH_CYCLES_CUBIN_COMPILER)
382                         string(SUBSTRING ${arch} 3 -1 CUDA_ARCH)
383
384                         # Needed to find libnvrtc-builtins.so. Can't do it from inside
385                         # cycles_cubin_cc since the env variable is read before main()
386                         if(APPLE)
387                                 set(CUBIN_CC_ENV ${CMAKE_COMMAND}
388                                         -E env DYLD_LIBRARY_PATH="${CUDA_TOOLKIT_ROOT_DIR}/lib")
389                         elseif(UNIX)
390                                 set(CUBIN_CC_ENV ${CMAKE_COMMAND}
391                                         -E env LD_LIBRARY_PATH="${CUDA_TOOLKIT_ROOT_DIR}/lib64")
392                         endif()
393
394                         add_custom_command(
395                                 OUTPUT ${cuda_cubin}
396                                 COMMAND ${CUBIN_CC_ENV}
397                                                 "$<TARGET_FILE:cycles_cubin_cc>"
398                                                 -target ${CUDA_ARCH}
399                                                 -i ${CMAKE_CURRENT_SOURCE_DIR}${cuda_kernel_src}
400                                                 ${cuda_flags}
401                                                 -v
402                                                 -cuda-toolkit-dir "${CUDA_TOOLKIT_ROOT_DIR}"
403                                 DEPENDS ${sources} cycles_cubin_cc)
404                 else()
405                         add_custom_command(
406                                 OUTPUT ${cuda_cubin}
407                                 COMMAND ${CUDA_NVCC_EXECUTABLE}
408                                                 -arch=${arch}
409                                                 ${CUDA_NVCC_FLAGS}
410                                                 --cubin
411                                                 ${CMAKE_CURRENT_SOURCE_DIR}${cuda_kernel_src}
412                                                 --ptxas-options="-v"
413                                                 ${cuda_flags}
414                                 DEPENDS ${sources})
415                 endif()
416                 delayed_install("${CMAKE_CURRENT_BINARY_DIR}" "${cuda_cubin}" ${CYCLES_INSTALL_PATH}/lib)
417                 list(APPEND cuda_cubins ${cuda_cubin})
418
419                 unset(cuda_debug_flags)
420         endmacro()
421
422         foreach(arch ${CYCLES_CUDA_BINARIES_ARCH})
423                 if(CUDA_VERSION GREATER "89" AND ${arch} MATCHES "sm_2.")
424                         message(STATUS "CUDA binaries for ${arch} disabled, not supported by CUDA 9.")
425                 else()
426                         # Compile regular kernel
427                         CYCLES_CUDA_KERNEL_ADD(${arch} filter "" "${cuda_filter_sources}" FALSE)
428                         CYCLES_CUDA_KERNEL_ADD(${arch} kernel "" "${cuda_sources}" FALSE)
429
430                         if(WITH_CYCLES_CUDA_SPLIT_KERNEL_BINARIES)
431                                 # Compile split kernel
432                                 CYCLES_CUDA_KERNEL_ADD(${arch} kernel_split "-D __SPLIT__" ${cuda_sources} FALSE)
433                         endif()
434                 endif()
435         endforeach()
436
437         add_custom_target(cycles_kernel_cuda ALL DEPENDS ${cuda_cubins})
438 endif()
439
440 # OSL module
441
442 if(WITH_CYCLES_OSL)
443         add_subdirectory(osl)
444         add_subdirectory(shaders)
445 endif()
446
447 # CPU module
448
449 include_directories(${INC})
450 include_directories(SYSTEM ${INC_SYS})
451
452 set_source_files_properties(kernels/cpu/kernel.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_KERNEL_FLAGS}")
453 set_source_files_properties(kernels/cpu/kernel_split.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_KERNEL_FLAGS}")
454 set_source_files_properties(kernels/cpu/filter.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_KERNEL_FLAGS}")
455
456 if(CXX_HAS_SSE)
457         set_source_files_properties(kernels/cpu/kernel_sse2.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE2_KERNEL_FLAGS}")
458         set_source_files_properties(kernels/cpu/kernel_sse3.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE3_KERNEL_FLAGS}")
459         set_source_files_properties(kernels/cpu/kernel_sse41.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE41_KERNEL_FLAGS}")
460         set_source_files_properties(kernels/cpu/kernel_split_sse2.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE2_KERNEL_FLAGS}")
461         set_source_files_properties(kernels/cpu/kernel_split_sse3.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE3_KERNEL_FLAGS}")
462         set_source_files_properties(kernels/cpu/kernel_split_sse41.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE41_KERNEL_FLAGS}")
463         set_source_files_properties(kernels/cpu/filter_sse2.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE2_KERNEL_FLAGS}")
464         set_source_files_properties(kernels/cpu/filter_sse3.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE3_KERNEL_FLAGS}")
465         set_source_files_properties(kernels/cpu/filter_sse41.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE41_KERNEL_FLAGS}")
466 endif()
467
468 if(CXX_HAS_AVX)
469         set_source_files_properties(kernels/cpu/kernel_avx.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX_KERNEL_FLAGS}")
470         set_source_files_properties(kernels/cpu/kernel_split_avx.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX_KERNEL_FLAGS}")
471         set_source_files_properties(kernels/cpu/filter_avx.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX_KERNEL_FLAGS}")
472 endif()
473
474 if(CXX_HAS_AVX2)
475         set_source_files_properties(kernels/cpu/kernel_avx2.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX2_KERNEL_FLAGS}")
476         set_source_files_properties(kernels/cpu/kernel_split_avx2.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX2_KERNEL_FLAGS}")
477         set_source_files_properties(kernels/cpu/filter_avx2.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX2_KERNEL_FLAGS}")
478 endif()
479
480 add_library(cycles_kernel
481         ${SRC_CPU_KERNELS}
482         ${SRC_CUDA_KERNELS}
483         ${SRC_OPENCL_KERNELS}
484         ${SRC_HEADERS}
485         ${SRC_KERNELS_CPU_HEADERS}
486         ${SRC_KERNELS_CUDA_HEADERS}
487         ${SRC_KERNELS_OPENCL_HEADERS}
488         ${SRC_BVH_HEADERS}
489         ${SRC_CLOSURE_HEADERS}
490         ${SRC_FILTER_HEADERS}
491         ${SRC_SVM_HEADERS}
492         ${SRC_GEOM_HEADERS}
493         ${SRC_SPLIT_HEADERS}
494 )
495
496 if(WITH_CYCLES_CUDA)
497         add_dependencies(cycles_kernel cycles_kernel_cuda)
498 endif()
499
500 # OpenCL kernel
501
502 #set(KERNEL_PREPROCESSED ${CMAKE_CURRENT_BINARY_DIR}/kernel_preprocessed.cl)
503 #add_custom_command(
504 #       OUTPUT ${KERNEL_PREPROCESSED}
505 #       COMMAND gcc -x c++ -E ${CMAKE_CURRENT_SOURCE_DIR}/kernel.cl -I ${CMAKE_CURRENT_SOURCE_DIR}/../util/ -DCCL_NAMESPACE_BEGIN= -DCCL_NAMESPACE_END= -o ${KERNEL_PREPROCESSED}
506 #       DEPENDS ${SRC_KERNEL} ${SRC_UTIL_HEADERS})
507 #add_custom_target(cycles_kernel_preprocess ALL DEPENDS ${KERNEL_PREPROCESSED})
508 #delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${KERNEL_PREPROCESSED}" ${CYCLES_INSTALL_PATH}/kernel)
509
510 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_OPENCL_KERNELS}" ${CYCLES_INSTALL_PATH}/source/kernel/kernels/opencl)
511 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_CUDA_KERNELS}" ${CYCLES_INSTALL_PATH}/source/kernel/kernels/cuda)
512 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel)
513 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_KERNELS_OPENCL_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel/kernels/opencl)
514 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_KERNELS_CUDA_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel/kernels/cuda)
515 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_BVH_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel/bvh)
516 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_CLOSURE_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel/closure)
517 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_FILTER_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel/filter)
518 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_SVM_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel/svm)
519 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_GEOM_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel/geom)
520 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_UTIL_HEADERS}" ${CYCLES_INSTALL_PATH}/source/util)
521 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_SPLIT_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel/split)
522