Code refactor: add ProjectionTransform separate from regular Transform.
[blender-staging.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_projection.h
258         ../util/util_rect.h
259         ../util/util_static_assert.h
260         ../util/util_transform.h
261         ../util/util_texture.h
262         ../util/util_types.h
263         ../util/util_types_float2.h
264         ../util/util_types_float2_impl.h
265         ../util/util_types_float3.h
266         ../util/util_types_float3_impl.h
267         ../util/util_types_float4.h
268         ../util/util_types_float4_impl.h
269         ../util/util_types_int2.h
270         ../util/util_types_int2_impl.h
271         ../util/util_types_int3.h
272         ../util/util_types_int3_impl.h
273         ../util/util_types_int4.h
274         ../util/util_types_int4_impl.h
275         ../util/util_types_uchar2.h
276         ../util/util_types_uchar2_impl.h
277         ../util/util_types_uchar3.h
278         ../util/util_types_uchar3_impl.h
279         ../util/util_types_uchar4.h
280         ../util/util_types_uchar4_impl.h
281         ../util/util_types_uint2.h
282         ../util/util_types_uint2_impl.h
283         ../util/util_types_uint3.h
284         ../util/util_types_uint3_impl.h
285         ../util/util_types_uint4.h
286         ../util/util_types_uint4_impl.h
287         ../util/util_types_vector3.h
288         ../util/util_types_vector3_impl.h
289 )
290
291 set(SRC_SPLIT_HEADERS
292         split/kernel_branched.h
293         split/kernel_buffer_update.h
294         split/kernel_data_init.h
295         split/kernel_direct_lighting.h
296         split/kernel_do_volume.h
297         split/kernel_enqueue_inactive.h
298         split/kernel_holdout_emission_blurring_pathtermination_ao.h
299         split/kernel_indirect_background.h
300         split/kernel_indirect_subsurface.h
301         split/kernel_lamp_emission.h
302         split/kernel_next_iteration_setup.h
303         split/kernel_path_init.h
304         split/kernel_queue_enqueue.h
305         split/kernel_scene_intersect.h
306         split/kernel_shader_setup.h
307         split/kernel_shader_sort.h
308         split/kernel_shader_eval.h
309         split/kernel_shadow_blocked_ao.h
310         split/kernel_shadow_blocked_dl.h
311         split/kernel_split_common.h
312         split/kernel_split_data.h
313         split/kernel_split_data_types.h
314         split/kernel_subsurface_scatter.h
315 )
316
317 # CUDA module
318
319 if(WITH_CYCLES_CUDA_BINARIES)
320         # 64 bit only
321         set(CUDA_BITS 64)
322
323         # CUDA version
324         execute_process(COMMAND ${CUDA_NVCC_EXECUTABLE} "--version" OUTPUT_VARIABLE NVCC_OUT)
325         string(REGEX REPLACE ".*release ([0-9]+)\\.([0-9]+).*" "\\1" CUDA_VERSION_MAJOR "${NVCC_OUT}")
326         string(REGEX REPLACE ".*release ([0-9]+)\\.([0-9]+).*" "\\2" CUDA_VERSION_MINOR "${NVCC_OUT}")
327         set(CUDA_VERSION "${CUDA_VERSION_MAJOR}${CUDA_VERSION_MINOR}")
328
329         # warn for other versions
330         if(CUDA_VERSION MATCHES "80" OR CUDA_VERSION MATCHES "90")
331         else()
332                 message(WARNING
333                         "CUDA version ${CUDA_VERSION_MAJOR}.${CUDA_VERSION_MINOR} detected, "
334                         "build may succeed but only CUDA 8.0 is officially supported")
335         endif()
336
337         # build for each arch
338         set(cuda_sources kernels/cuda/kernel.cu kernels/cuda/kernel_split.cu
339                 ${SRC_HEADERS}
340                 ${SRC_KERNELS_CUDA_HEADERS}
341                 ${SRC_BVH_HEADERS}
342                 ${SRC_SVM_HEADERS}
343                 ${SRC_GEOM_HEADERS}
344                 ${SRC_CLOSURE_HEADERS}
345                 ${SRC_UTIL_HEADERS}
346         )
347         set(cuda_filter_sources kernels/cuda/filter.cu
348                 ${SRC_HEADERS}
349                 ${SRC_KERNELS_CUDA_HEADERS}
350                 ${SRC_FILTER_HEADERS}
351                 ${SRC_UTIL_HEADERS}
352         )
353         set(cuda_cubins)
354
355         macro(CYCLES_CUDA_KERNEL_ADD arch name flags sources experimental)
356                 set(cuda_cubin ${name}_${arch}.cubin)
357                 set(cuda_kernel_src "/kernels/cuda/${name}.cu")
358
359                 set(cuda_flags
360                         -D CCL_NAMESPACE_BEGIN=
361                         -D CCL_NAMESPACE_END=
362                         -D NVCC
363                         -m ${CUDA_BITS}
364                         -I ${CMAKE_CURRENT_SOURCE_DIR}/..
365                         -I ${CMAKE_CURRENT_SOURCE_DIR}/kernels/cuda
366                         --use_fast_math
367                         -o ${CMAKE_CURRENT_BINARY_DIR}/${cuda_cubin})
368
369                 if(${experimental})
370                         set(cuda_flags ${cuda_flags} -D __KERNEL_EXPERIMENTAL__)
371                         set(name ${name}_experimental)
372                 endif()
373
374                 if(WITH_CYCLES_DEBUG)
375                         set(cuda_flags ${cuda_flags} -D __KERNEL_DEBUG__)
376                 endif()
377
378                 if(WITH_CYCLES_CUBIN_COMPILER)
379                         string(SUBSTRING ${arch} 3 -1 CUDA_ARCH)
380
381                         # Needed to find libnvrtc-builtins.so. Can't do it from inside
382                         # cycles_cubin_cc since the env variable is read before main()
383                         if(APPLE)
384                                 set(CUBIN_CC_ENV ${CMAKE_COMMAND}
385                                         -E env DYLD_LIBRARY_PATH="${CUDA_TOOLKIT_ROOT_DIR}/lib")
386                         elseif(UNIX)
387                                 set(CUBIN_CC_ENV ${CMAKE_COMMAND}
388                                         -E env LD_LIBRARY_PATH="${CUDA_TOOLKIT_ROOT_DIR}/lib64")
389                         endif()
390
391                         add_custom_command(
392                                 OUTPUT ${cuda_cubin}
393                                 COMMAND ${CUBIN_CC_ENV}
394                                                 "$<TARGET_FILE:cycles_cubin_cc>"
395                                                 -target ${CUDA_ARCH}
396                                                 -i ${CMAKE_CURRENT_SOURCE_DIR}${cuda_kernel_src}
397                                                 ${cuda_flags}
398                                                 -v
399                                                 -cuda-toolkit-dir "${CUDA_TOOLKIT_ROOT_DIR}"
400                                 DEPENDS ${sources} cycles_cubin_cc)
401                 else()
402                         add_custom_command(
403                                 OUTPUT ${cuda_cubin}
404                                 COMMAND ${CUDA_NVCC_EXECUTABLE}
405                                                 -arch=${arch}
406                                                 ${CUDA_NVCC_FLAGS}
407                                                 --cubin
408                                                 ${CMAKE_CURRENT_SOURCE_DIR}${cuda_kernel_src}
409                                                 --ptxas-options="-v"
410                                                 ${cuda_flags}
411                                 DEPENDS ${sources})
412                 endif()
413                 delayed_install("${CMAKE_CURRENT_BINARY_DIR}" "${cuda_cubin}" ${CYCLES_INSTALL_PATH}/lib)
414                 list(APPEND cuda_cubins ${cuda_cubin})
415
416                 unset(cuda_debug_flags)
417         endmacro()
418
419         foreach(arch ${CYCLES_CUDA_BINARIES_ARCH})
420                 if(${arch} MATCHES "sm_2.")
421                         message(STATUS "CUDA binaries for ${arch} are no longer supported, skipped.")
422                 else()
423                         # Compile regular kernel
424                         CYCLES_CUDA_KERNEL_ADD(${arch} filter "" "${cuda_filter_sources}" FALSE)
425                         CYCLES_CUDA_KERNEL_ADD(${arch} kernel "" "${cuda_sources}" FALSE)
426                 endif()
427
428                 if(WITH_CYCLES_CUDA_SPLIT_KERNEL_BINARIES)
429                         # Compile split kernel
430                         CYCLES_CUDA_KERNEL_ADD(${arch} kernel_split "-D __SPLIT__" ${cuda_sources} FALSE)
431                 endif()
432         endforeach()
433
434         add_custom_target(cycles_kernel_cuda ALL DEPENDS ${cuda_cubins})
435         cycles_set_solution_folder(cycles_kernel_cuda)
436 endif()
437
438 # OSL module
439
440 if(WITH_CYCLES_OSL)
441         add_subdirectory(osl)
442         add_subdirectory(shaders)
443 endif()
444
445 # CPU module
446
447 include_directories(${INC})
448 include_directories(SYSTEM ${INC_SYS})
449
450 set_source_files_properties(kernels/cpu/kernel.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_KERNEL_FLAGS}")
451 set_source_files_properties(kernels/cpu/kernel_split.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_KERNEL_FLAGS}")
452 set_source_files_properties(kernels/cpu/filter.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_KERNEL_FLAGS}")
453
454 if(CXX_HAS_SSE)
455         set_source_files_properties(kernels/cpu/kernel_sse2.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE2_KERNEL_FLAGS}")
456         set_source_files_properties(kernels/cpu/kernel_sse3.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE3_KERNEL_FLAGS}")
457         set_source_files_properties(kernels/cpu/kernel_sse41.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE41_KERNEL_FLAGS}")
458         set_source_files_properties(kernels/cpu/kernel_split_sse2.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE2_KERNEL_FLAGS}")
459         set_source_files_properties(kernels/cpu/kernel_split_sse3.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE3_KERNEL_FLAGS}")
460         set_source_files_properties(kernels/cpu/kernel_split_sse41.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE41_KERNEL_FLAGS}")
461         set_source_files_properties(kernels/cpu/filter_sse2.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE2_KERNEL_FLAGS}")
462         set_source_files_properties(kernels/cpu/filter_sse3.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE3_KERNEL_FLAGS}")
463         set_source_files_properties(kernels/cpu/filter_sse41.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_SSE41_KERNEL_FLAGS}")
464 endif()
465
466 if(CXX_HAS_AVX)
467         set_source_files_properties(kernels/cpu/kernel_avx.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX_KERNEL_FLAGS}")
468         set_source_files_properties(kernels/cpu/kernel_split_avx.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX_KERNEL_FLAGS}")
469         set_source_files_properties(kernels/cpu/filter_avx.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX_KERNEL_FLAGS}")
470 endif()
471
472 if(CXX_HAS_AVX2)
473         set_source_files_properties(kernels/cpu/kernel_avx2.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX2_KERNEL_FLAGS}")
474         set_source_files_properties(kernels/cpu/kernel_split_avx2.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX2_KERNEL_FLAGS}")
475         set_source_files_properties(kernels/cpu/filter_avx2.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX2_KERNEL_FLAGS}")
476 endif()
477
478 cycles_add_library(cycles_kernel
479         ${SRC_CPU_KERNELS}
480         ${SRC_CUDA_KERNELS}
481         ${SRC_OPENCL_KERNELS}
482         ${SRC_HEADERS}
483         ${SRC_KERNELS_CPU_HEADERS}
484         ${SRC_KERNELS_CUDA_HEADERS}
485         ${SRC_KERNELS_OPENCL_HEADERS}
486         ${SRC_BVH_HEADERS}
487         ${SRC_CLOSURE_HEADERS}
488         ${SRC_FILTER_HEADERS}
489         ${SRC_SVM_HEADERS}
490         ${SRC_GEOM_HEADERS}
491         ${SRC_SPLIT_HEADERS}
492 )
493
494 if(WITH_CYCLES_CUDA)
495         add_dependencies(cycles_kernel cycles_kernel_cuda)
496 endif()
497
498 # OpenCL kernel
499
500 #set(KERNEL_PREPROCESSED ${CMAKE_CURRENT_BINARY_DIR}/kernel_preprocessed.cl)
501 #add_custom_command(
502 #       OUTPUT ${KERNEL_PREPROCESSED}
503 #       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}
504 #       DEPENDS ${SRC_KERNEL} ${SRC_UTIL_HEADERS})
505 #add_custom_target(cycles_kernel_preprocess ALL DEPENDS ${KERNEL_PREPROCESSED})
506 #delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${KERNEL_PREPROCESSED}" ${CYCLES_INSTALL_PATH}/kernel)
507
508 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_OPENCL_KERNELS}" ${CYCLES_INSTALL_PATH}/source/kernel/kernels/opencl)
509 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_CUDA_KERNELS}" ${CYCLES_INSTALL_PATH}/source/kernel/kernels/cuda)
510 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel)
511 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_KERNELS_OPENCL_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel/kernels/opencl)
512 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_KERNELS_CUDA_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel/kernels/cuda)
513 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_BVH_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel/bvh)
514 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_CLOSURE_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel/closure)
515 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_FILTER_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel/filter)
516 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_SVM_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel/svm)
517 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_GEOM_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel/geom)
518 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_UTIL_HEADERS}" ${CYCLES_INSTALL_PATH}/source/util)
519 delayed_install(${CMAKE_CURRENT_SOURCE_DIR} "${SRC_SPLIT_HEADERS}" ${CYCLES_INSTALL_PATH}/source/kernel/split)
520