CMake: Build OpenXR as dll on windows;

This commit is contained in:
bjorn 2022-10-02 15:07:12 -07:00
parent 0d7ed04789
commit ef87ec8cba
1 changed files with 2 additions and 3 deletions

View File

@ -219,6 +219,7 @@ if(LOVR_ENABLE_HEADSET AND LOVR_USE_OPENXR)
include_directories(${OPENXR_INCLUDE_DIRS})
set(LOVR_OPENXR ${OPENXR_LIBRARIES})
else()
set(DYNAMIC_LOADER ON CACHE BOOL "")
add_subdirectory(deps/openxr openxr)
set(LOVR_OPENXR openxr_loader)
endif()
@ -642,9 +643,7 @@ if(WIN32)
move_dll(${LOVR_MSDF})
move_dll(${LOVR_OCULUS_AUDIO})
move_dll(${LOVR_PHONON})
if(LOVR_USE_OPENXR AND NOT LOVR_SYSTEM_OPENXR)
move_dll(${LOVR_OPENXR})
endif()
move_dll(${LOVR_OPENXR})
foreach(target ${ALL_PLUGIN_TARGETS})
move_dll(${target})
endforeach()