summaryrefslogtreecommitdiffhomepage
path: root/tracker-tobii-eyex
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-19 15:04:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-19 15:11:01 +0200
commit1f8f6f500d2d0ecebedebcae5fabb4bdac8c7760 (patch)
treec535042db236f85c676492a36933d46533a179a2 /tracker-tobii-eyex
parentfd86eebdd12158d80e4af190e7e7a474b410ce5a (diff)
tracker/tobii: don't install. find dynamic CRT harder.
Diffstat (limited to 'tracker-tobii-eyex')
-rw-r--r--tracker-tobii-eyex/CMakeLists.txt20
1 files changed, 15 insertions, 5 deletions
diff --git a/tracker-tobii-eyex/CMakeLists.txt b/tracker-tobii-eyex/CMakeLists.txt
index 465801ac..9446072c 100644
--- a/tracker-tobii-eyex/CMakeLists.txt
+++ b/tracker-tobii-eyex/CMakeLists.txt
@@ -1,7 +1,7 @@
if(WIN32)
set(SDK_TOBII_EYEX "" CACHE PATH "")
if(SDK_TOBII_EYEX)
- opentrack_boilerplate(opentrack-tracker-tobii-eyex)
+ opentrack_boilerplate(opentrack-tracker-tobii-eyex NO-INSTALL)
target_link_libraries(opentrack-tracker-tobii-eyex opentrack-spline-widget)
set(tobii-libdir ${SDK_TOBII_EYEX}/lib/x86/)
set(tobii-dll ${tobii-libdir}/Tobii.EyeX.Client.dll)
@@ -12,11 +12,21 @@ if(WIN32)
# we only ever use the C headers due to Microsoft CRT ABI incompatibility with GNU
set(tobii-incdir ${SDK_TOBII_EYEX}/include/eyex)
target_include_directories(opentrack-tracker-tobii-eyex SYSTEM PUBLIC ${tobii-incdir})
- install(FILES ${tobii-dll} DESTINATION ${opentrack-hier-pfx} ${opentrack-perms})
+
+ if(FALSE)
+ install(FILES ${tobii-dll} DESTINATION ${opentrack-hier-pfx} ${opentrack-perms})
+ endif()
if((CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows") AND (CMAKE_SYSTEM_NAME STREQUAL "Windows"))
- # let's assume 32-bit Windows host systems doesn't exist at all
- install(FILES c:/windows/syswow64/msvcp110.dll DESTINATION ${opentrack-hier-pfx} ${opentrack-perms})
- install(FILES c:/windows/syswow64/msvcr110.dll DESTINATION ${opentrack-hier-pfx} ${opentrack-perms})
+ file(TO_CMAKE_PATH "$ENV{SystemRoot}" sysroot)
+ if (IS_DIRECTORY "${sysroot}/SysWOW64")
+ set(src "${sysroot}/SysWOW64")
+ else()
+ set(src "${sysroot}/System32")
+ endif()
+ if(FALSE)
+ install(FILES "${src}/msvcp110.dll" DESTINATION ${opentrack-hier-pfx} ${opentrack-perms})
+ install(FILES "${src}/msvcr110.dll" DESTINATION ${opentrack-hier-pfx} ${opentrack-perms})
+ endif()
endif()
endif()
endif()