diff --git a/CMakeLists.txt b/CMakeLists.txt index bea79e2fe..e789c727a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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. diff --git a/src/xrt/targets/CMakeLists.txt b/src/xrt/targets/CMakeLists.txt index 91e6d77e7..844f605c4 100644 --- a/src/xrt/targets/CMakeLists.txt +++ b/src/xrt/targets/CMakeLists.txt @@ -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()