mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
CMake Razor Hydra module.
This commit is contained in:
parent
80f31c0068
commit
2f7e5bfb73
2 changed files with 32 additions and 0 deletions
19
Tools/CMake/modules/module_hydra.cmake
Normal file
19
Tools/CMake/modules/module_hydra.cmake
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
# module OculusVR
|
||||||
|
|
||||||
|
# Source
|
||||||
|
addPathRec( "${srcDir}/platform/input/razerHydra" )
|
||||||
|
|
||||||
|
# Includes
|
||||||
|
include_directories( "${TORQUE_RAZERHYDRA_SDK_PATH}/include" )
|
||||||
|
|
||||||
|
# Install
|
||||||
|
if( WIN32 )
|
||||||
|
# File Copy for Release
|
||||||
|
INSTALL(FILES "${TORQUE_RAZERHYDRA_SDK_PATH}/bin/win32/release_dll/sixense.dll" DESTINATION "${projectOutDir}")
|
||||||
|
|
||||||
|
# File Copy for Debug
|
||||||
|
INSTALL(FILES "${TORQUE_RAZERHYDRA_SDK_PATH}/bin/win32/debug_dll/sixensed.dll" DESTINATION "${projectOutDir}" CONFIGURATIONS "Debug" )
|
||||||
|
# Only needed by the debug sixense library
|
||||||
|
INSTALL(FILES "${TORQUE_RAZERHYDRA_SDK_PATH}/samples/win32/sixense_simple3d/DeviceDLL.dll" DESTINATION "${projectOutDir}" CONFIGURATIONS "Debug" )
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
@ -33,6 +33,15 @@ else() # hide variable
|
||||||
set(TORQUE_OCULUSVR_SDK_PATH "" CACHE INTERNAL "" FORCE)
|
set(TORQUE_OCULUSVR_SDK_PATH "" CACHE INTERNAL "" FORCE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
#Hydra
|
||||||
|
option(TORQUE_HYDRA "Enable HYDRA module" OFF)
|
||||||
|
mark_as_advanced(TORQUE_HYDRA)
|
||||||
|
if(TORQUE_HYDRA)
|
||||||
|
set(TORQUE_HYDRA_SDK_PATH "" CACHE PATH "HYDRA library path" FORCE)
|
||||||
|
else() # hide variable
|
||||||
|
set(TORQUE_HYDRA_SDK_PATH "" CACHE INTERNAL "" FORCE)
|
||||||
|
endif()
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# options
|
# options
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
@ -243,6 +252,10 @@ if(TORQUE_OCULUSVR)
|
||||||
include( "modules/module_oculusVR.cmake" )
|
include( "modules/module_oculusVR.cmake" )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(TORQUE_HYDRA)
|
||||||
|
include( "modules/module_hydra.cmake" )
|
||||||
|
endif()
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# platform specific things
|
# platform specific things
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue