cmake: Make sure st_oxr exposes its optional vulkan/gl dependencies

Fixes builds of tests on Windows
This commit is contained in:
Ryan Pavlik 2021-06-08 12:02:59 -05:00
parent 2b6b1ad70b
commit 2c87f57ad1

View file

@ -89,10 +89,10 @@ target_link_libraries(st_oxr PRIVATE
aux_os
)
if(XRT_HAVE_VULKAN)
target_link_libraries(st_oxr PRIVATE Vulkan::Vulkan)
target_link_libraries(st_oxr PUBLIC Vulkan::Vulkan)
endif()
if(XRT_HAVE_OPENGL OR XRT_HAVE_OPENGLES)
target_link_libraries(st_oxr PRIVATE aux_ogl)
target_link_libraries(st_oxr PUBLIC aux_ogl)
endif()
if(ANDROID)
target_link_libraries(st_oxr PRIVATE aux_android)