# ANSPulsar — Apache Pulsar messaging DLL
add_library(ANSPulsar SHARED
    ANSPulsar.cpp
    ANSPulsar.h
    dllmain.cpp
    pch.cpp
    pch.h
    framework.h
)

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

target_include_directories(ANSPulsar PRIVATE
    ${ANSLIBS_DIR}/Pulsar/include
)

target_link_directories(ANSPulsar PRIVATE ${ANSLIBS_DIR}/Pulsar/lib)

target_link_libraries(ANSPulsar
    PRIVATE ANSLicensingSystem
    PRIVATE anslicensing
    PRIVATE labview
    PRIVATE pulsar.lib
)

target_compile_definitions(ANSPulsar PRIVATE UNICODE _UNICODE ANSPULSAR_EXPORTS _USRDLL)
target_precompile_headers(ANSPulsar PRIVATE pch.h)
