# ANSRabbitMQ — RabbitMQ messaging DLL
add_library(ANSRabbitMQ SHARED
    ANSRabbitMQ.cpp
    ANSRabbitMQ.h
    dllmain.cpp
    pch.cpp
    pch.h
    framework.h
)

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

target_include_directories(ANSRabbitMQ PRIVATE
    ${ANSLIBS_DIR}/RabbitMQ/include
)

target_link_directories(ANSRabbitMQ PRIVATE ${ANSLIBS_DIR}/RabbitMQ/libs)

target_link_libraries(ANSRabbitMQ
    PRIVATE ANSLicensingSystem
    PRIVATE anslicensing
    PRIVATE labview
    PRIVATE rabbitmq.4.lib
)

target_compile_definitions(ANSRabbitMQ PRIVATE UNICODE _UNICODE ANSRABBITMQ_EXPORTS _USRDLL)
target_precompile_headers(ANSRabbitMQ PRIVATE pch.h)
