From 9d1d0529d3f46d538b85e7a8ad787e3a27a14096 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Fri, 25 Aug 2017 14:26:47 +0200 Subject: move cmake config files to /cmake --- cmake/gRPCConfig.cmake.in | 8 ++++++++ cmake/gRPCConfigVersion.cmake.in | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 cmake/gRPCConfig.cmake.in create mode 100644 cmake/gRPCConfigVersion.cmake.in (limited to 'cmake') diff --git a/cmake/gRPCConfig.cmake.in b/cmake/gRPCConfig.cmake.in new file mode 100644 index 0000000000..1a0fa6a462 --- /dev/null +++ b/cmake/gRPCConfig.cmake.in @@ -0,0 +1,8 @@ +# Depend packages +@_gRPC_FIND_ZLIB@ +@_gRPC_FIND_PROTOBUF@ +@_gRPC_FIND_SSL@ +@_gRPC_FIND_CARES@ + +# Targets +include(${CMAKE_CURRENT_LIST_DIR}/gRPCTargets.cmake) diff --git a/cmake/gRPCConfigVersion.cmake.in b/cmake/gRPCConfigVersion.cmake.in new file mode 100644 index 0000000000..f3c19fd403 --- /dev/null +++ b/cmake/gRPCConfigVersion.cmake.in @@ -0,0 +1,11 @@ +set(PACKAGE_VERSION "@PACKAGE_VERSION@") + +# Check whether the requested PACKAGE_FIND_VERSION is compatible +if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}") + set(PACKAGE_VERSION_COMPATIBLE FALSE) +else() + set(PACKAGE_VERSION_COMPATIBLE TRUE) + if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}") + set(PACKAGE_VERSION_EXACT TRUE) + endif() +endif() -- cgit v1.2.3