c/util: Tweak cmake [NFC]

This commit is contained in:
Jakob Bornecrantz 2023-09-14 18:17:12 +01:00
parent 322c652691
commit 50adb87d79

View file

@ -81,32 +81,6 @@ if(XRT_HAVE_D3D12)
)
endif()
##
# Util library
#
if(XRT_HAVE_VULKAN)
add_library(
comp_util STATIC
util/comp_base.h
util/comp_base.c
util/comp_semaphore.h
util/comp_semaphore.c
util/comp_swapchain.h
util/comp_swapchain.c
util/comp_sync.h
util/comp_sync.c
util/comp_vulkan.h
util/comp_vulkan.c
)
target_link_libraries(
comp_util
PUBLIC xrt-interfaces
PRIVATE aux_util aux_os aux_vk
)
target_include_directories(comp_util PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
endif()
##
# Render library
#
@ -162,6 +136,32 @@ if(XRT_HAVE_VULKAN)
add_subdirectory(shaders)
endif()
##
# Util library
#
if(XRT_HAVE_VULKAN)
add_library(
comp_util STATIC
util/comp_base.h
util/comp_base.c
util/comp_semaphore.h
util/comp_semaphore.c
util/comp_swapchain.h
util/comp_swapchain.c
util/comp_sync.h
util/comp_sync.c
util/comp_vulkan.h
util/comp_vulkan.c
)
target_link_libraries(
comp_util
PUBLIC xrt-interfaces
PRIVATE aux_util aux_os aux_vk
)
target_include_directories(comp_util PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
endif()
##
# Main library
#