mirror of
https://github.com/overte-org/overte.git
synced 2025-06-19 05:20:12 +02:00
16 lines
747 B
CMake
16 lines
747 B
CMake
set(TARGET_NAME shaders)
|
|
autoscribe_shader_libs(gpu graphics display-plugins procedural render render-utils entities-renderer)
|
|
setup_hifi_library(Gui)
|
|
|
|
add_dependencies(${TARGET_NAME} compiled_shaders reflected_shaders)
|
|
|
|
# Despite the dependency above, the autogen logic will attempt to compile the QRC before
|
|
# the compiled_shaders project is built causing an error on a clean workspace because the
|
|
# QRC references files generated by the compiled_shaders target
|
|
# To fix that we need to explicitly add every shader as a dependnecy of the autogen process
|
|
foreach(COMPILED_SHADER ${COMPILED_SHADERS})
|
|
set_property(TARGET ${TARGET_NAME} APPEND PROPERTY AUTOGEN_TARGET_DEPENDS "${COMPILED_SHADER}")
|
|
endforeach()
|
|
|
|
link_hifi_libraries(shared gl)
|
|
|