diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2020-03-29 16:36:17 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2020-03-29 16:36:17 +0200 |
commit | e2aaacd8495fc96453ed71699244ed0a59299cb3 (patch) | |
tree | e299f7dfca0e5e43618af645d80a006c4aa2f1bb /tracker-rift-140/CMakeLists.txt | |
parent | 51ba50ca1d93bf8e4c692aaff30790e4d0a427f9 (diff) |
tracker/rift: work with prebuilt releases
Diffstat (limited to 'tracker-rift-140/CMakeLists.txt')
-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() |