diff options
Diffstat (limited to 'source/blender/compositor/CMakeLists.txt')
-rw-r--r-- | source/blender/compositor/CMakeLists.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source/blender/compositor/CMakeLists.txt b/source/blender/compositor/CMakeLists.txt index 4dc111cebd2..550441be9b7 100644 --- a/source/blender/compositor/CMakeLists.txt +++ b/source/blender/compositor/CMakeLists.txt @@ -50,6 +50,21 @@ set(INC_SYS ) +# --- data file --- +# ... may make this a macro +list(APPEND INC + ${CMAKE_CURRENT_BINARY_DIR}/operations +) +add_custom_command( + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/operations/COM_OpenCLKernels.cl.h + COMMAND ${CMAKE_COMMAND} + -DFILE_FROM=${CMAKE_CURRENT_SOURCE_DIR}/operations/COM_OpenCLKernels.cl + -DFILE_TO=${CMAKE_CURRENT_BINARY_DIR}/operations/COM_OpenCLKernels.cl.h + -DVAR_NAME=clkernelstoh_COM_OpenCLKernels_cl + -P ${CMAKE_SOURCE_DIR}/build_files/cmake/data_to_c.cmake + DEPENDS operations/COM_OpenCLKernels.cl) +# --- end data file -- + set(SRC COM_compositor.h COM_defines.h @@ -638,6 +653,9 @@ set(SRC operations/COM_MaskOperation.cpp operations/COM_MaskOperation.h + + # generated file + ${CMAKE_CURRENT_BINARY_DIR}/operations/COM_OpenCLKernels.cl.h ) blender_add_lib(bf_compositor "${SRC}" "${INC}" "${INC_SYS}") |