feat: made sure shaders are always recompiled when necesairy

This commit is contained in:
2020-05-30 14:10:21 +02:00
parent a3d406e8c5
commit cb7d7fd376

View File

@@ -20,6 +20,7 @@ foreach(GLSL ${GLSL_SOURCE_FILES})
COMMAND glslc ${GLSL} -g -o ${SPV_FILE}
DEPENDS ${GLSL}
COMMENT "Rebuilding ${SPV_FILE}")
set_property(SOURCE ${GLSL} APPEND PROPERTY OBJECT_DEPENDS ${SPV_FILE})
list(APPEND SPIRV_BINARY_KERNELS ${SPV_FILE})
endforeach()
add_custom_target(shaders DEPENDS ${SPIRV_BINARY_KERNELS})