From c297c6c7a9e5a295029e04703c76cdf6e03cba23 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 6 Sep 2019 02:02:43 -0400 Subject: [PATCH] ApplicationTools: Link in boo and hecl-light Ensures that the include paths are always automatically added to the shader targets. --- hecl/ApplicationTools.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hecl/ApplicationTools.cmake b/hecl/ApplicationTools.cmake index ca81e7d09..0cbeb5bc1 100644 --- a/hecl/ApplicationTools.cmake +++ b/hecl/ApplicationTools.cmake @@ -52,6 +52,7 @@ function(add_shader file) add_stage_rep(shader_${name} ${CMAKE_CURRENT_BINARY_DIR}/${dir}/shader_${name}.hpp) add_pipeline_rep(shader_${name} ${CMAKE_CURRENT_BINARY_DIR}/${dir}/shader_${name}.hpp UNIVERSAL) add_library(shader_${name} ${CMAKE_CURRENT_BINARY_DIR}/${dir}/shader_${name}.hpp ${CMAKE_CURRENT_BINARY_DIR}/${dir}/shader_${name}.cpp) + target_link_libraries(shader_${name} PUBLIC boo hecl-light) add_shader_target(shader_${name}) endfunction() @@ -59,5 +60,6 @@ function(add_special_shader name) add_stage_rep(${name} ${name}.hpp) add_pipeline_rep(${name} ${name}.hpp UNIVERSAL) add_library(${name} ${name}.hpp ${ARGN}) + target_link_libraries(${name} PUBLIC boo hecl-light) add_shader_target(${name}) endfunction()