monado/src/CMakeLists.txt

41 lines
754 B
CMake
Raw Normal View History

2019-03-18 05:52:32 +00:00
# Copyright 2019, Collabora, Ltd.
# SPDX-License-Identifier: BSL-1.0
if(BUILD_TRACKING)
set(XRT_BUILD_TRACKING TRUE)
endif()
if(BUILD_DRIVER_HDK)
set(XRT_BUILD_DRIVER_HDK TRUE)
endif()
if(BUILD_DRIVER_HYDRA)
set(XRT_BUILD_DRIVER_HYDRA TRUE)
endif()
if(BUILD_DRIVER_OHMD)
set(XRT_BUILD_DRIVER_OHMD TRUE)
endif()
if(BUILD_DRIVER_PSMV)
set(XRT_BUILD_DRIVER_PSMV TRUE)
endif()
if(BUILD_DRIVER_PSVR)
set(XRT_BUILD_DRIVER_PSVR TRUE)
endif()
if(BUILD_DRIVER_V4L2)
set(XRT_BUILD_DRIVER_V4L2 TRUE)
endif()
if(BUILD_DRIVER_VIVE)
set(XRT_BUILD_DRIVER_VIVE TRUE)
endif()
2019-09-24 13:43:43 +00:00
configure_file(targets_enabled_drivers.h.cmake_in ${CMAKE_CURRENT_BINARY_DIR}/targets_enabled_drivers.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
2019-03-18 05:52:32 +00:00
add_subdirectory(xrt)