diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 54 |
1 files changed, 29 insertions, 25 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index dc99632..a135609 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,29 +34,33 @@ add_subdirectory(LibOVR) # Sample code support # -# Make sure to set up the OVR include paths -include_directories(${LibOVR_SOURCE_DIR}/Include) -include_directories(${LibOVR_SOURCE_DIR}/Src) -include_directories(${LibOVR_SOURCE_DIR}/Src/Kernel) -include_directories(${LibOVR_SOURCE_DIR}/Src/Util) - -# Cross platform window creation -add_subdirectory(3rdParty/glfw) -include_directories(${CMAKE_SOURCE_DIR}/3rdParty/glfw/include) - -# Cross platform access to shader functionality -add_definitions( -DGLEW_STATIC ) -add_subdirectory(3rdParty/glew) -include_directories(${CMAKE_SOURCE_DIR}/3rdParty/glew/include) - -# Used by the sample code to read the tuscany resources -add_subdirectory(3rdParty/TinyXml) -include_directories(${CMAKE_SOURCE_DIR}/3rdParty/TinyXml) - -add_definitions( -DGL_GLEXT_PROTOTYPES ) -add_subdirectory (Samples/CommonSrc ) -add_subdirectory (Samples/OculusWorldDemo ) -add_subdirectory (Samples/OculusRoomTiny ) -add_subdirectory (Samples/SensorBox ) -add_subdirectory (Samples/TestSensor ) +option(OCULUS_BUILD_SAMPLES "Build Oculus demos" TRUE) + +if(OCULUS_BUILD_SAMPLES) + # Make sure to set up the OVR include paths + include_directories(${LibOVR_SOURCE_DIR}/Include) + include_directories(${LibOVR_SOURCE_DIR}/Src) + include_directories(${LibOVR_SOURCE_DIR}/Src/Kernel) + include_directories(${LibOVR_SOURCE_DIR}/Src/Util) + + # Cross platform window creation + add_subdirectory(3rdParty/glfw) + include_directories(${CMAKE_SOURCE_DIR}/3rdParty/glfw/include) + + # Cross platform access to shader functionality + add_definitions( -DGLEW_STATIC ) + add_subdirectory(3rdParty/glew) + include_directories(${CMAKE_SOURCE_DIR}/3rdParty/glew/include) + + # Used by the sample code to read the tuscany resources + add_subdirectory(3rdParty/TinyXml) + include_directories(${CMAKE_SOURCE_DIR}/3rdParty/TinyXml) + + add_definitions( -DGL_GLEXT_PROTOTYPES ) + add_subdirectory (Samples/CommonSrc ) + add_subdirectory (Samples/OculusWorldDemo ) + add_subdirectory (Samples/OculusRoomTiny ) + add_subdirectory (Samples/SensorBox ) + add_subdirectory (Samples/TestSensor ) +endif() |