2020-05-20 04:28:55 +00:00
|
|
|
set (LIBRARY_DIR ${ClickHouse_SOURCE_DIR}/contrib/AMQP-CPP)
|
|
|
|
|
|
|
|
set (SRCS
|
|
|
|
${LIBRARY_DIR}/src/array.cpp
|
|
|
|
${LIBRARY_DIR}/src/channel.cpp
|
|
|
|
${LIBRARY_DIR}/src/channelimpl.cpp
|
|
|
|
${LIBRARY_DIR}/src/connectionimpl.cpp
|
|
|
|
${LIBRARY_DIR}/src/deferredcancel.cpp
|
|
|
|
${LIBRARY_DIR}/src/deferredconfirm.cpp
|
|
|
|
${LIBRARY_DIR}/src/deferredconsumer.cpp
|
|
|
|
${LIBRARY_DIR}/src/deferredextreceiver.cpp
|
|
|
|
${LIBRARY_DIR}/src/deferredget.cpp
|
|
|
|
${LIBRARY_DIR}/src/deferredpublisher.cpp
|
|
|
|
${LIBRARY_DIR}/src/deferredreceiver.cpp
|
|
|
|
${LIBRARY_DIR}/src/field.cpp
|
|
|
|
${LIBRARY_DIR}/src/flags.cpp
|
|
|
|
${LIBRARY_DIR}/src/linux_tcp/openssl.cpp
|
|
|
|
${LIBRARY_DIR}/src/linux_tcp/tcpconnection.cpp
|
2020-10-06 11:26:27 +00:00
|
|
|
${LIBRARY_DIR}/src/inbuffer.cpp
|
2020-05-20 04:28:55 +00:00
|
|
|
${LIBRARY_DIR}/src/receivedframe.cpp
|
|
|
|
${LIBRARY_DIR}/src/table.cpp
|
|
|
|
${LIBRARY_DIR}/src/watchable.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(amqp-cpp ${SRCS})
|
|
|
|
|
|
|
|
target_compile_options (amqp-cpp
|
2020-07-13 01:11:35 +00:00
|
|
|
PRIVATE
|
2020-05-20 04:28:55 +00:00
|
|
|
-Wno-old-style-cast
|
|
|
|
-Wno-inconsistent-missing-destructor-override
|
|
|
|
-Wno-deprecated
|
|
|
|
-Wno-unused-parameter
|
|
|
|
-Wno-shadow
|
|
|
|
-Wno-tautological-type-limit-compare
|
|
|
|
-Wno-extra-semi
|
|
|
|
# NOTE: disable all warnings at last because the warning:
|
|
|
|
# "conversion function converting 'XXX' to itself will never be used"
|
|
|
|
# doesn't have it's own diagnostic flag yet.
|
|
|
|
-w
|
|
|
|
)
|
|
|
|
|
2020-07-13 01:11:35 +00:00
|
|
|
target_include_directories (amqp-cpp SYSTEM PUBLIC ${LIBRARY_DIR}/include)
|
2020-05-20 04:28:55 +00:00
|
|
|
|
2020-06-29 10:11:55 +00:00
|
|
|
target_link_libraries (amqp-cpp PUBLIC ssl)
|
2020-05-20 04:28:55 +00:00
|
|
|
|