feat: add CMake build configuration and unit tests for XRabbitMQClient

This commit is contained in:
bing
2026-04-03 15:36:34 +08:00
parent b704b006c1
commit fee1555166
58 changed files with 6183 additions and 8 deletions

View File

@@ -0,0 +1,25 @@
# Load the debug and release variables
file(GLOB DATA_FILES "${CMAKE_CURRENT_LIST_DIR}/simpleamqpclient-*-data.cmake")
foreach(f ${DATA_FILES})
include(${f})
endforeach()
# Create the targets for all the components
foreach(_COMPONENT ${simpleamqpclient_COMPONENT_NAMES} )
if(NOT TARGET ${_COMPONENT})
add_library(${_COMPONENT} INTERFACE IMPORTED)
message(${simpleamqpclient_MESSAGE_MODE} "Conan: Component target declared '${_COMPONENT}'")
endif()
endforeach()
if(NOT TARGET simpleamqpclient::simpleamqpclient)
add_library(simpleamqpclient::simpleamqpclient INTERFACE IMPORTED)
message(${simpleamqpclient_MESSAGE_MODE} "Conan: Target declared 'simpleamqpclient::simpleamqpclient'")
endif()
# Load the debug and release library finders
file(GLOB CONFIG_FILES "${CMAKE_CURRENT_LIST_DIR}/simpleamqpclient-Target-*.cmake")
foreach(f ${CONFIG_FILES})
include(${f})
endforeach()