# ANSONVIF — ONVIF Camera Protocol DLL
add_library(ANSONVIF SHARED
    ANSONVIF.cpp
    ANSONVIF.h
    dllmain.cpp
    pch.cpp
    pch.h
    framework.h
)

target_include_directories(ANSONVIF PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${SHARED_INCLUDE_DIR}
)

target_include_directories(ANSONVIF PRIVATE
    ${ANLS_ROOT}/ONVIF/include
    ${ANLS_ROOT}/ONVIF/include/bm
)

target_link_directories(ANSONVIF PRIVATE ${ANLS_ROOT}/ONVIF/lib)

target_link_libraries(ANSONVIF
    PRIVATE ANSLicensingSystem
    PRIVATE anslicensing
    PRIVATE labview
    PRIVATE OnvifClientLibrary.lib
)

target_compile_definitions(ANSONVIF PRIVATE UNICODE _UNICODE ANSONVIF_EXPORTS _USRDLL)
target_precompile_headers(ANSONVIF PRIVATE pch.h)
