Merge pull request #25 from lioncash/target

ApplicationTools: Link in boo and hecl-light
This commit is contained in:
Phillip Stephens 2019-09-09 04:19:37 -07:00 committed by GitHub
commit 23dabdaf37
1 changed files with 2 additions and 0 deletions

View File

@ -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()