summaryrefslogtreecommitdiffhomepage
path: root/tracker-tobii/CMakeLists.txt
blob: 7787a7dd660e355712eec76c5b65f41983c364f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# https://developer.tobii.com/download-packages/tobii-xr-native-sdk/
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/${arch}")

    set(dll "${SDK_TOBII}/lib/${arch}/tobii_stream_engine.dll")
    set(lib tobii_stream_engine.lib)

    target_link_libraries(${self} ${lib})
    install(FILES ${dll} DESTINATION ${opentrack-libexec})
endif()