Merge pull request #3184 from erwincoumans/master

cmake OPTION(USE_OPENVR OFF) so only compile OpenVR VR examples when …
This commit is contained in:
erwincoumans
2020-12-04 08:53:31 -08:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ SET(CLAMP_VELOCITIES "0" CACHE STRING "Clamp rigid bodies' velocity to this valu
OPTION(USE_GRAPHICAL_BENCHMARK "Use Graphical Benchmark" ON)
OPTION(BUILD_SHARED_LIBS "Use shared libraries" OFF)
OPTION(USE_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD "Use btSoftMultiBodyDynamicsWorld" ON)
OPTION(USE_OPENVR "Use OpenVR for virtual reality" OFF)
OPTION(BULLET2_MULTITHREADING "Build Bullet 2 libraries with mutex locking around certain operations (required for multi-threading)" OFF)
IF (BULLET2_MULTITHREADING)

View File

@@ -225,6 +225,8 @@ ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)
#VR/OpenVR on Windows and Mac OSX
IF(USE_OPENVR)
IF (WIN32 OR APPLE)
INCLUDE_DIRECTORIES(
@@ -413,3 +415,5 @@ ELSE(WIN32 OR APPLE)
ENDIF(INTERNAL_ADD_POSTFIX_EXECUTABLE_NAMES)
ENDIF(WIN32 OR APPLE)
ENDIF(USE_OPENVR)