From 0998425520a57cdba875c869fc1c5d12d14312e7 Mon Sep 17 00:00:00 2001 From: Jamie Anthony Morris <47879963+Jacksparrow2525@users.noreply.github.com> Date: Thu, 3 Jun 2021 16:49:39 +0800 Subject: [PATCH] Enable engine-native to reference OpenXR headers and link with shared libraries (#157) --- android/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/android/CMakeLists.txt b/android/CMakeLists.txt index be9c458b..c2be8d64 100644 --- a/android/CMakeLists.txt +++ b/android/CMakeLists.txt @@ -30,6 +30,12 @@ set_target_properties(uv PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${platform_spec_path}/include/uv ) +add_library(openxr SHARED IMPORTED GLOBAL) +set_target_properties(openxr PROPERTIES + IMPORTED_LOCATION ${platform_spec_path}/libxr_loader.so + INTERFACE_INCLUDE_DIRECTORIES ${platform_spec_path}/include/openxr +) + add_library(webp STATIC IMPORTED GLOBAL) set_target_properties(webp PROPERTIES IMPORTED_LOCATION ${platform_spec_path}/libwebp.a