summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorEric Huff <eric.huff@ihsmarkit.com>2020-05-28 23:53:56 +0000
committerAlan Antonuk <alan.antonuk@gmail.com>2020-05-31 19:51:59 -0700
commitd416b8b16d196085106cfe137a0ff6919a9f6752 (patch)
treee691c25e52c8605f2bbc9d36b7fae84d13e82782 /cmake
parent9ee7b7b2c655392ac0f76f0bef488aaea1d89da8 (diff)
downloadrabbitmq-c-d416b8b16d196085106cfe137a0ff6919a9f6752.tar.gz
Add rabbitmq-c-config.cmake generation
Generating a -config.cmake or Config.cmake lets rabbitmq-c be discoverable via cmake's `find_package`, and allows easier use in the vcpkg ecosystem.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/rabbitmq-c-config.cmake.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/rabbitmq-c-config.cmake.in b/cmake/rabbitmq-c-config.cmake.in
new file mode 100644
index 0000000..8d03749
--- /dev/null
+++ b/cmake/rabbitmq-c-config.cmake.in
@@ -0,0 +1,4 @@
+@PACKAGE_INIT@
+
+include(${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake)
+check_required_components(rabbitmq-c)