cmake: Add XRT_MODULE_MONADO_GUI

This commit is contained in:
Moshi Turner 2023-03-03 14:59:47 -06:00
parent ed086ea423
commit 8d2d90432a
2 changed files with 2 additions and 1 deletions

View file

@ -328,6 +328,7 @@ set(XRT_OXR_RUNTIME_SUFFIX monado CACHE STRING "OpenXR client library suffix")
# cmake-format: on
option(XRT_MODULE_MONADO_CLI "Build monado-cli" ON)
option_with_deps(XRT_MODULE_MONADO_GUI "Build monado-gui" DEPENDS XRT_HAVE_SDL2)
option(XRT_MODULE_AUX_VIVE "Build aux_vive" ON)
# Most users won't touch these.

View file

@ -15,7 +15,7 @@ if(XRT_MODULE_MONADO_CLI)
add_subdirectory(cli)
endif()
if(XRT_HAVE_SDL2)
if(XRT_MODULE_MONADO_GUI)
add_subdirectory(gui)
endif()