diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-16 10:37:00 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-01-16 10:37:00 +0100 |
commit | 48f830f74383837004ad12f6f20143422e98c27d (patch) | |
tree | 7a0b84bec8e1d2ec548f5d4f1ef7010739cde44f | |
parent | 67773cef8cd5af5c0cdd1237ac6a263274d445e7 (diff) |
tracker/steamvr: simplify, add linux32
-rw-r--r-- | tracker-steamvr/CMakeLists.txt | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tracker-steamvr/CMakeLists.txt b/tracker-steamvr/CMakeLists.txt index 8d14880c..8205a0a3 100644 --- a/tracker-steamvr/CMakeLists.txt +++ b/tracker-steamvr/CMakeLists.txt @@ -2,10 +2,13 @@ set(steamvr-dir "") set(steamvr-dll "") set(steamvr-lib "") -if(LINUX AND opentrack-64bit) - set(steamvr-dir "linux64") +if(LINUX) + if (opentrack-64bit) + set(steamvr-dir "linux64") + else() + set(steamvr-dir "linux32") + endif() set(steamvr-dll "libopenvr_api.so") - set(steamvr-lib "${steamvr-dll}") endif() if(WIN32) @@ -15,16 +18,17 @@ if(WIN32) set(steamvr-dir "win32") endif() set(steamvr-dll "openvr_api.dll") - set(steamvr-lib "openvr_api.lib") endif() if(APPLE AND NOT opentrack-64bit) set(steamvr-dir "osx32") set(steamvr-dll "libopenvr_api.dylib") - set(steamvr-lib "${steamvr-dll}") endif() if(steamvr-dll AND opentrack-intel) + if(steamvr-lib STREQUAL "") + set(steamvr-lib "${steamvr-dll}") + endif() SET(SDK_VALVE_STEAMVR "" CACHE PATH "Valve's SteamVR") if(SDK_VALVE_STEAMVR) otr_module(tracker-steamvr) |