diff options
Diffstat (limited to 'tracker-rift-140')
-rw-r--r-- | tracker-rift-140/CMakeLists.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tracker-rift-140/CMakeLists.txt b/tracker-rift-140/CMakeLists.txt index 6e54412a..278effe2 100644 --- a/tracker-rift-140/CMakeLists.txt +++ b/tracker-rift-140/CMakeLists.txt @@ -1,5 +1,14 @@ -if(WIN32 OR APPLE) - include(opentrack-rift) - otr_rift(tracker-rift-140 SDK_RIFT_140) +if(WIN32) SET(SDK_RIFT_140 "" CACHE PATH "libOVR 1.4.0 path for Oculus Rift") + if(SDK_RIFT_140) + include_directories("${SDK_RIFT_140}/Include") + if(opentrack-64bit) + link_directories("${SDK_RIFT_140}/Lib/Windows/x64/Release/VS2017") + else() + link_directories("${SDK_RIFT_140}/Lib/Windows/Win32/Release/VS2017") + endif() + link_libraries(LibOVR winmm setupapi ws2_32 imagehlp wbemuuid) + + otr_module(tracker-rift) + endif() endif() |