···9191option(BUILD_WITH_DUMMY "Enable dummy driver" ON)
9292cmake_dependent_option(BUILD_WITH_VIVE "Enable Vive driver" ON "ZLIB_FOUND" OFF)
9393cmake_dependent_option(BUILD_WITH_OPENHMD "Enable OpenHMD driver" ON "OPENHMD_FOUND" OFF)
9494-cmake_dependent_option(BUILD_WITH_SDL2 "Enable SDL2 based test application" ON "SDL2_FOUND" OFF)
9494+cmake_dependent_option(BUILD_WITH_SDL2 "Enable SDL2 based test application" ON "SDL2_FOUND AND BUILD_WITH_OPENGL" OFF)
9595cmake_dependent_option(BUILD_WITH_DAYDREAM "Enable Bluetooth LE via DBUS" ON "BUILD_WITH_DBUS" OFF)
9696cmake_dependent_option(BUILD_WITH_ARDUINO "Enable Arduino input device with BLE via DBUS" ON "BUILD_WITH_DBUS" OFF)
9797
+11-7
src/xrt/targets/openxr/CMakeLists.txt
···2424 ${SOURCE_FILES}
2525 )
26262727-# Note: Order matters in this list!
2727+# Note: Order may matter in these lists!
2828target_link_libraries(${RUNTIME_TARGET} PUBLIC
2929 aux_vk
3030 aux_os
3131- aux_ogl
3231 aux_util
3332 aux_math
3333+ )
3434+3535+if(BUILD_WITH_OPENGL)
3636+ target_link_libraries(${RUNTIME_TARGET} PUBLIC aux_ogl)
3737+endif()
3838+if(BUILD_WITH_SDL2)
3939+ target_link_libraries(${RUNTIME_TARGET} PUBLIC st_gui imgui_impl_sdl)
4040+endif()
4141+4242+target_link_libraries(${RUNTIME_TARGET} PUBLIC
3443 st_oxr
3535- st_gui
3644 st_prober
3745 target_lists
3846 target_instance
3947 comp_main
4048 comp_client
4149 )
4242-4343-if(BUILD_WITH_SDL2)
4444- target_link_libraries(${RUNTIME_TARGET} PUBLIC imgui_impl_sdl)
4545-endif()
46504751if(NOT MSVC)
4852 # Force the main "negotiate" symbol's inclusion