2020-03-18 16:42:27 +00:00
|
|
|
# Copyright 2019, Benjamin Saunders <ben.e.saunders@gmail.com>
|
2019-06-14 20:57:34 +00:00
|
|
|
# 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@)
|
|
|
|
|
2021-11-11 23:41:58 +00:00
|
|
|
execute_process(
|
|
|
|
COMMAND
|
|
|
|
${CMAKE_COMMAND} -E create_symlink
|
|
|
|
${CMAKE_INSTALL_PREFIX}/${MANIFEST_RELATIVE_DIR}/${RUNTIME_TARGET}.json
|
|
|
|
${CMAKE_BINARY_DIR}/active_runtime.json
|
|
|
|
)
|
2019-06-14 20:57:34 +00:00
|
|
|
file(
|
|
|
|
INSTALL
|
|
|
|
DESTINATION "${CMAKE_INSTALL_FULL_SYSCONFDIR}/xdg/openxr/${XR_API_MAJOR}"
|
2021-11-11 23:41:58 +00:00
|
|
|
TYPE FILE FILES "${CMAKE_BINARY_DIR}/active_runtime.json"
|
|
|
|
)
|