diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-19 15:13:48 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-19 15:13:48 +0200 |
commit | d993825ace9886d45d1519ed51d0fccae55da884 (patch) | |
tree | 9bdc7bdbf660019f726aae6f98abe2c63c9c8e3d /tracker-tobii-eyex/CMakeLists.txt | |
parent | eee2cffd96fa2d7312708768fac7e67f129c5970 (diff) | |
parent | 9a85b814d908a28fb7444b7e1b5afae9fe629784 (diff) |
Merge branch 'feature/tobii-eyex-support' into unstable
THIS IS UNFINISHED.
The code is built to be fixed in real time against internal API changes.
Diffstat (limited to 'tracker-tobii-eyex/CMakeLists.txt')
-rw-r--r-- | tracker-tobii-eyex/CMakeLists.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tracker-tobii-eyex/CMakeLists.txt b/tracker-tobii-eyex/CMakeLists.txt new file mode 100644 index 00000000..9446072c --- /dev/null +++ b/tracker-tobii-eyex/CMakeLists.txt @@ -0,0 +1,32 @@ +if(WIN32) + set(SDK_TOBII_EYEX "" CACHE PATH "") + if(SDK_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) + # 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}) + + 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")) + 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() |