# Copyright 2019-2022, Collabora, Ltd. # SPDX-License-Identifier: BSL-1.0 # Common includes add_library(aux-includes INTERFACE) target_include_directories( aux-includes INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) target_link_libraries(aux-includes INTERFACE xrt-interfaces) # Bindings library. add_subdirectory(bindings) # OpenGL library. if(XRT_HAVE_OPENGL OR XRT_HAVE_OPENGLES) add_subdirectory(ogl) endif() # Direct3D library if(XRT_HAVE_D3D11 AND XRT_HAVE_VULKAN) add_subdirectory(d3d) endif() # Math library. add_subdirectory(math) # OS library. add_subdirectory(os) # GStreamer library. if(XRT_HAVE_GST) add_subdirectory(gstreamer) endif() # Tracking library. add_subdirectory(tracking) # Util library. add_subdirectory(util) # Vive helper library. if(XRT_BUILD_DRIVER_VIVE OR XRT_BUILD_DRIVER_SURVIVE OR XRT_BUILD_DRIVER_REMOTE) add_subdirectory(vive) endif() # Android library. if(ANDROID) add_subdirectory(android) endif() # Vulkan library. if(XRT_HAVE_VULKAN) add_subdirectory(vk) endif()