opentrack_boilerplate(opentrack-api NO-LINKER-SCRIPT NO-COMPAT LINKAGE)
if(NOT WIN32)
    target_link_libraries(opentrack-api opentrack-qxt-mini opentrack-compat dl)
else()
    target_link_libraries(opentrack-api winmm)
endif()
link_with_dinput8(opentrack-api)
target_link_libraries(opentrack-api opentrack-spline-widget)