45 lines
1.6 KiB
CMake
45 lines
1.6 KiB
CMake
########## MACROS ###########################################################################
|
|
#############################################################################################
|
|
|
|
# Requires CMake > 3.15
|
|
if(${CMAKE_VERSION} VERSION_LESS "3.15")
|
|
message(FATAL_ERROR "The 'CMakeDeps' generator only works with CMake >= 3.15")
|
|
endif()
|
|
|
|
if(rabbitmq-c_FIND_QUIETLY)
|
|
set(rabbitmq-c_MESSAGE_MODE VERBOSE)
|
|
else()
|
|
set(rabbitmq-c_MESSAGE_MODE STATUS)
|
|
endif()
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/cmakedeps_macros.cmake)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/rabbitmq-cTargets.cmake)
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
check_build_type_defined()
|
|
|
|
foreach(_DEPENDENCY ${rabbitmq-c_FIND_DEPENDENCY_NAMES} )
|
|
# Check that we have not already called a find_package with the transitive dependency
|
|
if(NOT ${_DEPENDENCY}_FOUND)
|
|
find_dependency(${_DEPENDENCY} REQUIRED ${${_DEPENDENCY}_FIND_MODE})
|
|
endif()
|
|
endforeach()
|
|
|
|
set(rabbitmq-c_VERSION_STRING "0.11.0")
|
|
set(rabbitmq-c_INCLUDE_DIRS ${rabbitmq-c_INCLUDE_DIRS_RELEASE} )
|
|
set(rabbitmq-c_INCLUDE_DIR ${rabbitmq-c_INCLUDE_DIRS_RELEASE} )
|
|
set(rabbitmq-c_LIBRARIES ${rabbitmq-c_LIBRARIES_RELEASE} )
|
|
set(rabbitmq-c_DEFINITIONS ${rabbitmq-c_DEFINITIONS_RELEASE} )
|
|
|
|
|
|
# Definition of extra CMake variables from cmake_extra_variables
|
|
|
|
|
|
# Only the last installed configuration BUILD_MODULES are included to avoid the collision
|
|
foreach(_BUILD_MODULE ${rabbitmq-c_BUILD_MODULES_PATHS_RELEASE} )
|
|
message(${rabbitmq-c_MESSAGE_MODE} "Conan: Including build module from '${_BUILD_MODULE}'")
|
|
include(${_BUILD_MODULE})
|
|
endforeach()
|
|
|
|
|