mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-12 01:45:25 +00:00
18 lines
514 B
CMake
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"
|
|
)
|