Enable engine-native to reference OpenXR headers and link with shared libraries (#157)

This commit is contained in:
Jamie Anthony Morris 2021-06-03 16:49:39 +08:00 committed by GitHub
parent fc99b7a7ac
commit 0998425520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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