mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
c/render: Make library usable on it's own in cmake
This commit is contained in:
parent
ace0ca62c6
commit
77efa57e0a
|
@ -124,12 +124,14 @@ if(XRT_HAVE_VULKAN)
|
||||||
render/render_shaders.c
|
render/render_shaders.c
|
||||||
render/render_util.c
|
render/render_util.c
|
||||||
)
|
)
|
||||||
|
# The aux_vk library needs to be public to include Vulkan.
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
comp_render
|
comp_render
|
||||||
PUBLIC xrt-interfaces
|
PUBLIC xrt-interfaces aux_vk
|
||||||
PRIVATE aux_util aux_os aux_vk
|
PRIVATE aux_util aux_os
|
||||||
)
|
)
|
||||||
target_include_directories(comp_render PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
# So it can be used without any other compositor libraries.
|
||||||
|
target_include_directories(comp_render PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
# Shaders - marked SYSTEM so we get no warnings
|
# Shaders - marked SYSTEM so we get no warnings
|
||||||
target_include_directories(comp_render SYSTEM PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
target_include_directories(comp_render SYSTEM PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue