monado/src/xrt/targets/openxr/active_runtime.cmake
2019-08-19 12:09:49 -05:00

18 lines
514 B
CMake

# SPDX-License-Identifier: BSL-1.0
include(GNUInstallDirs)
set(MANIFEST_RELATIVE_DIR @MANIFEST_RELATIVE_DIR@)
set(XR_API_MAJOR @XR_API_MAJOR@)
set(RUNTIME_TARGET @RUNTIME_TARGET@)
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
${CMAKE_INSTALL_PREFIX}/${MANIFEST_RELATIVE_DIR}/${RUNTIME_TARGET}.json
${CMAKE_BINARY_DIR}/active_runtime.json)
file(
INSTALL
DESTINATION "${CMAKE_INSTALL_FULL_SYSCONFDIR}/xdg/openxr/${XR_API_MAJOR}"
TYPE FILE
FILES "${CMAKE_BINARY_DIR}/active_runtime.json"
)