diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 88295979fa7..efaff97ca5f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -234,6 +234,17 @@ option(WITH_BULLET "Enable Bullet (Physics Engine)" ON) option(WITH_SYSTEM_BULLET "Use the systems bullet library (currently unsupported due to missing features in upstream!)" ) mark_as_advanced(WITH_SYSTEM_BULLET) option(WITH_OPENCOLORIO "Enable OpenColorIO color management" ${_init_OPENCOLORIO}) +option(WITH_OPENXR "Enable VR features through the OpenXR specification" ON) +if(WITH_OPENXR) + option(OPENXR_USE_BUNDLED_SRC "Compile using the bundled OpenXR SDK sources (otherwise it has to be compiled manually)" ON) + if(NOT OPENXR_USE_BUNDLED_SRC) + find_package(OpenXR-SDK) + if(NOT OPENXR_SDK_FOUND) + message(WARNING "OpenXR-SDK was not found, disabling WITH_OPENXR") + set(WITH_OPENXR OFF) + endif() + endif() +endif() # Compositor option(WITH_COMPOSITOR "Enable the tile based nodal compositor" ON) @@ -1764,6 +1775,7 @@ if(FIRST_RUN) info_cfg_option(WITH_CYCLES) info_cfg_option(WITH_FREESTYLE) info_cfg_option(WITH_OPENCOLORIO) + info_cfg_option(WITH_OPENXR) info_cfg_option(WITH_OPENVDB) info_cfg_option(WITH_ALEMBIC) |