summaryrefslogtreecommitdiffhomepage
path: root/tracker-tobii-eyex/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-05-16 13:08:20 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-19 15:10:59 +0200
commitb367b4c39090735ddf40df757ae381f4b4fe13cb (patch)
treef53c2ea29551bc43744504dfb848f5473f21c0ea /tracker-tobii-eyex/CMakeLists.txt
parentf1fc04d58d90cc0edde82a2bdeaefffb7d4d6951 (diff)
tracker/tobii-eyex: initial revision
Diffstat (limited to 'tracker-tobii-eyex/CMakeLists.txt')
-rw-r--r--tracker-tobii-eyex/CMakeLists.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/tracker-tobii-eyex/CMakeLists.txt b/tracker-tobii-eyex/CMakeLists.txt
new file mode 100644
index 00000000..a5fb3404
--- /dev/null
+++ b/tracker-tobii-eyex/CMakeLists.txt
@@ -0,0 +1,21 @@
+if(WIN32)
+ set(SDK_TOBII_EYEX "" CACHE PATH "")
+ if(SDK_TOBII_EYEX)
+ opentrack_boilerplate(opentrack-tracker-tobii-eyex)
+ set(tobii-libdir ${SDK_TOBII_EYEX}/lib/x86/)
+ set(tobii-dll ${tobii-libdir}/Tobii.EyeX.Client.dll)
+ # we only care about the .lib for MSVC++ build anyway
+ set(tobii-link ${tobii-libdir}/Tobii.EyeX.Client.lib)
+ target_include_directories(opentrack-tracker-tobii-eyex PRIVATE ${CMAKE_SOURCE_DIR}/spline-widget)
+ target_link_libraries(opentrack-tracker-tobii-eyex ${tobii-link} opentrack-spline-widget)
+ # 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((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})
+ endif()
+ endif()
+endif()