12345678910111213141516171819202122232425262728293031 |
- set(LIBRARY_NAME zxrabbitmq)
- set(LIBRARY_SOURCE_LIST
- ${CMAKE_CURRENT_LIST_DIR}/rabbitmq_base.h
- ${CMAKE_CURRENT_LIST_DIR}/rabbitmq_base.cpp
- ${CMAKE_CURRENT_LIST_DIR}/rabbitmq_message.h
- ${CMAKE_CURRENT_LIST_DIR}/rabbitmq_message.cpp
- ${CMAKE_CURRENT_LIST_DIR}/rabbitmq.pb.cc
- ${CMAKE_CURRENT_LIST_DIR}/rabbitmq.pb.h
- )
- if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
- set(Rabbitmq
- /usr/lib/aarch64-linux-gnu/librabbitmq.a
- )
- else()
- set(Rabbitmq
- /usr/local/lib/librabbitmq.a
- )
- endif()
- set(LIBRARY_DEPEND_LIST
- zxthread
- zxmessage
- ${Rabbitmq}
- ${PROTOBUF_LIBRARIES}
- )
- add_library(${LIBRARY_NAME} ${LIBRARY_SOURCE_LIST})
- target_link_libraries(${LIBRARY_NAME} PUBLIC ${LIBRARY_DEPEND_LIST})
|