Optionally download the OpenXR SDK for the Linux client

This commit is contained in:
Guillaume Meunier
2024-03-16 20:05:57 +01:00
parent 6f5a00cdd3
commit b60c1f7b61
3 changed files with 16 additions and 3 deletions
+8 -2
View File
@@ -63,8 +63,14 @@ if(ANDROID)
else()
add_executable(wivrn)
find_package(OpenXR REQUIRED)
target_link_libraries(wivrn OpenXR::openxr_loader OpenXR::headers PkgConfig::LIBAV)
if (OPENXR_FOUND)
target_link_libraries(wivrn OpenXR::openxr_loader OpenXR::headers)
else()
FetchContent_MakeAvailable(openxr_loader)
target_link_libraries(wivrn openxr_loader)
endif()
target_link_libraries(wivrn PkgConfig::LIBAV)
file(GLOB PLATFORM_SOURCE CONFIGURE_DEPENDS