2022-05-22 12:21:44 +00:00
|
|
|
# Copyright 2019-2022, Collabora, Ltd.
|
2019-03-18 05:52:32 +00:00
|
|
|
# SPDX-License-Identifier: BSL-1.0
|
|
|
|
|
2021-03-31 00:57:10 +00:00
|
|
|
|
2021-11-11 23:41:58 +00:00
|
|
|
# Common includes
|
|
|
|
add_library(aux-includes INTERFACE)
|
|
|
|
target_include_directories(
|
|
|
|
aux-includes INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
|
2020-08-19 19:51:54 +00:00
|
|
|
)
|
2021-11-11 23:41:58 +00:00
|
|
|
target_link_libraries(aux-includes INTERFACE xrt-interfaces)
|
2020-08-19 19:51:54 +00:00
|
|
|
|
2022-05-22 12:21:44 +00:00
|
|
|
# Bindings library.
|
|
|
|
add_subdirectory(bindings)
|
|
|
|
|
2021-11-11 23:41:58 +00:00
|
|
|
# OpenGL library.
|
|
|
|
if(XRT_HAVE_OPENGL OR XRT_HAVE_OPENGLES)
|
2022-05-22 12:21:44 +00:00
|
|
|
add_subdirectory(ogl)
|
2021-11-11 23:41:58 +00:00
|
|
|
endif()
|
|
|
|
|
2022-05-02 21:48:23 +00:00
|
|
|
# Direct3D library
|
|
|
|
if(XRT_HAVE_D3D11 AND XRT_HAVE_VULKAN)
|
2022-05-22 12:21:44 +00:00
|
|
|
add_subdirectory(d3d)
|
2022-05-02 21:48:23 +00:00
|
|
|
endif()
|
|
|
|
|
2021-11-11 23:41:58 +00:00
|
|
|
# Math library.
|
2022-05-22 12:21:44 +00:00
|
|
|
add_subdirectory(math)
|
2019-03-18 05:52:32 +00:00
|
|
|
|
2021-11-11 23:41:58 +00:00
|
|
|
# OS library.
|
2022-05-22 12:21:44 +00:00
|
|
|
add_subdirectory(os)
|
2019-05-03 14:47:45 +00:00
|
|
|
|
2021-11-11 23:41:58 +00:00
|
|
|
# GStreamer library.
|
|
|
|
if(XRT_HAVE_GST)
|
2022-05-22 12:21:44 +00:00
|
|
|
add_subdirectory(gstreamer)
|
2021-11-11 23:41:58 +00:00
|
|
|
endif()
|
2021-02-02 18:21:14 +00:00
|
|
|
|
2021-11-11 23:41:58 +00:00
|
|
|
# Tracking library.
|
2022-05-22 12:21:44 +00:00
|
|
|
add_subdirectory(tracking)
|
2019-07-23 16:29:14 +00:00
|
|
|
|
2021-11-11 23:41:58 +00:00
|
|
|
# Util library.
|
2022-05-22 12:21:44 +00:00
|
|
|
add_subdirectory(util)
|
2020-08-19 19:51:54 +00:00
|
|
|
|
2022-05-22 12:21:44 +00:00
|
|
|
# Vive helper library.
|
2022-05-28 14:17:36 +00:00
|
|
|
if(XRT_BUILD_DRIVER_VIVE OR XRT_BUILD_DRIVER_SURVIVE OR XRT_BUILD_DRIVER_REMOTE)
|
2022-05-22 12:21:44 +00:00
|
|
|
add_subdirectory(vive)
|
2021-11-11 23:41:58 +00:00
|
|
|
endif()
|
2020-08-19 19:51:54 +00:00
|
|
|
|
2022-05-22 12:21:44 +00:00
|
|
|
# Android library.
|
2020-08-19 19:51:54 +00:00
|
|
|
if(ANDROID)
|
2022-05-22 12:21:44 +00:00
|
|
|
add_subdirectory(android)
|
|
|
|
endif()
|
2021-11-11 23:41:58 +00:00
|
|
|
|
2022-05-22 12:21:44 +00:00
|
|
|
# Vulkan library.
|
|
|
|
if(XRT_HAVE_VULKAN)
|
|
|
|
add_subdirectory(vk)
|
2020-08-19 19:51:54 +00:00
|
|
|
endif()
|