summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2020-03-29 16:36:17 +0200
committerStanislaw Halik <sthalik@misaki.pl>2020-03-29 16:36:17 +0200
commite2aaacd8495fc96453ed71699244ed0a59299cb3 (patch)
treee299f7dfca0e5e43618af645d80a006c4aa2f1bb
parent51ba50ca1d93bf8e4c692aaff30790e4d0a427f9 (diff)
tracker/rift: work with prebuilt releases
-rw-r--r--tracker-rift-140/CMakeLists.txt15
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()