mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-23 07:01:55 +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)
21 lines
580 B
CMake
21 lines
580 B
CMake
# Copyright 2019, Benjamin Saunders <ben.e.saunders@gmail.com>
|
|
# 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"
|
|
)
|