mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-10 08:55:27 +00:00
cc4007a69e
We now have a cmake-format config file. We no longer use list variables for sources, instead using target_sources when we need to add, in accordance with current best practice. (This makes it a lot easier to edit too.) There's no more include_directories(), add_definitions(), or other gently-deprecated directory-scoped commands, nor any CMake scripts that include a parent directory reference (named targets instead)
35 lines
652 B
CMake
35 lines
652 B
CMake
# Copyright 2019-2020, Collabora, Ltd.
|
|
# SPDX-License-Identifier: BSL-1.0
|
|
|
|
######
|
|
# This is where we collect all of the pieces from the different parts of
|
|
# the source tree and build a complete driver or integration part.
|
|
|
|
add_subdirectory(common)
|
|
|
|
if(XRT_FEATURE_OPENXR)
|
|
add_subdirectory(openxr)
|
|
endif()
|
|
|
|
add_subdirectory(cli)
|
|
|
|
if(XRT_HAVE_SDL2)
|
|
add_subdirectory(gui)
|
|
endif()
|
|
|
|
if(XRT_FEATURE_SERVICE)
|
|
add_subdirectory(ctl)
|
|
endif()
|
|
|
|
if(XRT_FEATURE_SERVICE AND XRT_FEATURE_OPENXR)
|
|
if(ANDROID)
|
|
add_subdirectory(service-lib)
|
|
else()
|
|
add_subdirectory(service)
|
|
endif()
|
|
endif()
|
|
|
|
if(XRT_FEATURE_STEAMVR_PLUGIN)
|
|
add_subdirectory(steamvr_drv)
|
|
endif()
|