# ANSMOT — Multi-Object Tracking DLL (ByteTrack, OC-SORT, UCMC)
file(GLOB_RECURSE ANSMOT_HEADERS "*.h")
file(GLOB_RECURSE ANSMOT_SOURCES "*.cpp")

add_library(ANSMOT SHARED ${ANSMOT_HEADERS} ${ANSMOT_SOURCES})

target_include_directories(ANSMOT PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
)

# ByteTrack, OC-SORT, UCMC all have include subdirectories
target_include_directories(ANSMOT PRIVATE
    ${CMAKE_CURRENT_SOURCE_DIR}/ByteTrack/include
    ${CMAKE_CURRENT_SOURCE_DIR}/ByteTrackEigen/include
    ${CMAKE_CURRENT_SOURCE_DIR}/ByteTrackNCNN/include
    ${CMAKE_CURRENT_SOURCE_DIR}/OCSort/include
    ${CMAKE_CURRENT_SOURCE_DIR}/UCMC/include
)

# Match original vcxproj: labview, anslicensing, ANSLicensingSystem
target_link_libraries(ANSMOT
    PRIVATE ANSLicensingSystem
    PRIVATE anslicensing
    PRIVATE labview
    PRIVATE spdlog_dep
    PRIVATE opencv
)

target_compile_definitions(ANSMOT PRIVATE UNICODE _UNICODE ANSMOT_EXPORTS)
target_precompile_headers(ANSMOT PRIVATE pch.h)
