summaryrefslogtreecommitdiffhomepage
path: root/tracker-hydra/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-07 11:40:57 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-07 11:40:57 +0200
commit74034c5bc3447cf628d13ca692beec7ffc0ce4cd (patch)
tree7ce191ecf80e7f86118eefb227d9b89391975244 /tracker-hydra/CMakeLists.txt
parent7a3569f80051d48ac427849c30b2f5685b368b71 (diff)
cmake: check word size
Diffstat (limited to 'tracker-hydra/CMakeLists.txt')
-rw-r--r--tracker-hydra/CMakeLists.txt17
1 files changed, 6 insertions, 11 deletions
diff --git a/tracker-hydra/CMakeLists.txt b/tracker-hydra/CMakeLists.txt
index 85d9177f..13613625 100644
--- a/tracker-hydra/CMakeLists.txt
+++ b/tracker-hydra/CMakeLists.txt
@@ -1,9 +1,12 @@
-SET(SDK_HYDRA "" CACHE PATH "libSixense path for Razer Hydra")
+set(SDK_HYDRA "" CACHE PATH "libSixense path for Razer Hydra")
if(SDK_HYDRA)
- include(opentrack-hier)
opentrack_boilerplate(opentrack-tracker-hydra)
target_include_directories(opentrack-tracker-hydra SYSTEM PUBLIC ${SDK_HYDRA}/include ${SDK_HYDRA}/include/sixense_utils)
- set(six4 "")
+ if(opentrack-64bit)
+ set(six4 _x64)
+ else()
+ set(six4 "")
+ endif()
if(WIN32)
if(MSVC)
set(dir lib)
@@ -22,19 +25,11 @@ if(SDK_HYDRA)
set(under-dll _dll)
set(soext dylib)
set(plat osx)
- set(six4 _x64)
else()
set(dest ${opentrack-hier-pfx})
set(under-dll)
set(soext so)
set(plat linux)
- if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR
- CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64"
- )
- set(six4 _x64)
- else()
- set(six4)
- endif()
endif()
target_link_libraries(opentrack-tracker-hydra "${SDK_HYDRA}/lib/${plat}${six4}/release${under-dll}/libsixense${six4}.${soext}")
install(FILES "${SDK_HYDRA}/lib/${plat}${six4}/release${under-dll}/libsixense${six4}.${soext}" DESTINATION ${opentrack-hier-pfx} ${opentrack-perms})