diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-09-09 17:21:52 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-09-09 17:21:52 -0400 |
commit | 9180c4e7a9b92b2a69a95533acc7bc1a1a41f415 (patch) | |
tree | 958701fe8f07defcc1d7071b481318ab662313b7 /indra/cmake | |
parent | 0c451a60b7fe859f9deeaefb6360e96ec9af630f (diff) | |
parent | b7c82a8e7a5efcf56cf8c60ecc4922cf2942b70e (diff) |
Merge branch 'develop' into release/luau-scripting
Diffstat (limited to 'indra/cmake')
-rw-r--r-- | indra/cmake/OpenXR.cmake | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/indra/cmake/OpenXR.cmake b/indra/cmake/OpenXR.cmake new file mode 100644 index 0000000000..2cc862b927 --- /dev/null +++ b/indra/cmake/OpenXR.cmake @@ -0,0 +1,22 @@ +# -*- cmake -*- + +include(Prebuilt) + +include_guard() +add_library( ll::openxr INTERFACE IMPORTED ) + +if(USE_CONAN ) + target_link_libraries( ll::openxr INTERFACE CONAN_PKG::openxr ) + return() +endif() + +use_prebuilt_binary(openxr) +if (WINDOWS) + target_link_libraries( ll::openxr INTERFACE ${ARCH_PREBUILT_DIRS_RELEASE}/openxr_loader.lib ) +else() + target_link_libraries( ll::openxr INTERFACE ${ARCH_PREBUILT_DIRS_RELEASE}/libopenxr_loader.a ) +endif (WINDOWS) + +if( NOT LINUX ) + target_include_directories( ll::openxr SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include) +endif() |