diff options
Diffstat (limited to 'tracker-tobii/CMakeLists.txt')
-rw-r--r-- | tracker-tobii/CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tracker-tobii/CMakeLists.txt b/tracker-tobii/CMakeLists.txt index c70a874c..7787a7dd 100644 --- a/tracker-tobii/CMakeLists.txt +++ b/tracker-tobii/CMakeLists.txt @@ -3,10 +3,16 @@ set(SDK_TOBII "" CACHE PATH "Tobii Stream Engine path") if(WIN32 AND SDK_TOBII) otr_module(tracker-tobii) + if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4") + set(arch "x86") + else() + set(arch "x64") + endif() + target_include_directories(${self} SYSTEM PRIVATE "${SDK_TOBII}/include") - target_link_directories(${self} PRIVATE "${SDK_TOBII}/lib/tobii") + target_link_directories(${self} PRIVATE "${SDK_TOBII}/lib/${arch}") - set(dll "${SDK_TOBII}/lib/tobii/tobii_stream_engine.dll") + set(dll "${SDK_TOBII}/lib/${arch}/tobii_stream_engine.dll") set(lib tobii_stream_engine.lib) target_link_libraries(${self} ${lib}) |