diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-30 08:43:22 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-30 08:43:22 +0100 |
commit | 9b736d361bcde7a2ddaf3fe54b471c0e658e94f4 (patch) | |
tree | f00d31fd95949b4de708130471160f21e71cd9fa /tracker-hydra | |
parent | 2160e39a4f3d5198eafbb483671583a5a0b51eaa (diff) |
cmake: cleanup hydra
Diffstat (limited to 'tracker-hydra')
-rw-r--r-- | tracker-hydra/CMakeLists.txt | 48 |
1 files changed, 19 insertions, 29 deletions
diff --git a/tracker-hydra/CMakeLists.txt b/tracker-hydra/CMakeLists.txt index 6a4a7cfe..2c90e285 100644 --- a/tracker-hydra/CMakeLists.txt +++ b/tracker-hydra/CMakeLists.txt @@ -11,34 +11,24 @@ if(SDK_HYDRA) set(dir bin) set(ext dll) endif() - target_link_libraries(opentrack-tracker-hydra - "${SDK_HYDRA}/${dir}/win32/release_dll/sixense.${ext}" - #"${SDK_HYDRA}/${dir}/win32/release_dll/sixense_utils.${ext}" - ) - install(FILES "${SDK_HYDRA}/bin/win32/release_dll/sixense.dll" - #"${SDK_HYDRA}/bin/win32/release_dll/sixense_utils.dll" - DESTINATION . ${opentrack-perms}) - else() - if(SDK_HYDRA_AMD64) - set(six4 _x64) - else() - set(six4) - endif() - if(APPLE) - set(under-dll _dll) - set(soext dylib) - set(plat osx) - else() - set(under-dll) - set(soext so) - set(plat linux) - endif() - install(FILES - "${SDK_HYDRA}/lib/${plat}${six4}/release${under-dll}/libsixense${six4}.${soext}" - DESTINATION . - ) - target_link_libraries(opentrack-tracker-hydra - "${SDK_HYDRA}/lib/${plat}${six4}/release${under-dll}/libsixense${six4}.${soext}" - ) + target_link_libraries(opentrack-tracker-hydra "${SDK_HYDRA}/${dir}/win32/release_dll/sixense.${ext}") + install(FILES "${SDK_HYDRA}/bin/win32/release_dll/sixense.dll" DESTINATION . ${opentrack-perms}) + else() + if(SDK_HYDRA_AMD64) + set(six4 _x64) + else() + set(six4) + endif() + if(APPLE) + set(under-dll _dll) + set(soext dylib) + set(plat osx) + else() + set(under-dll) + set(soext so) + set(plat linux) + endif() + install(FILES "${SDK_HYDRA}/lib/${plat}${six4}/release${under-dll}/libsixense${six4}.${soext}" DESTINATION .) + target_link_libraries(opentrack-tracker-hydra "${SDK_HYDRA}/lib/${plat}${six4}/release${under-dll}/libsixense${six4}.${soext}") endif() endif() |