summaryrefslogtreecommitdiff
path: root/hiredis_ssl-config.cmake.in
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2020-04-09 08:05:14 -0700
committerGitHub <noreply@github.com>2020-04-09 08:05:14 -0700
commitec08c2b94a6d2e3f3572dfdac734fb8a92682ac8 (patch)
tree0a47e95eec8ad6f9dc31b03c8c2fe3dc55a66e01 /hiredis_ssl-config.cmake.in
parentb314c0df3d05b362d484fffe5cc03ca98584e084 (diff)
Added CMake package config and fixed hiredis_ssl on Windows (#783)
* Add CMake package configuration so hiredis can be more easily included in other projects. * Fixes hiredis_ssl such that it compiles and works in windows Co-authored-by: nrivera <nrivera@blizzard.com> Co-authored-by: Nick <heronr1@gmail.com>
Diffstat (limited to 'hiredis_ssl-config.cmake.in')
-rw-r--r--hiredis_ssl-config.cmake.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/hiredis_ssl-config.cmake.in b/hiredis_ssl-config.cmake.in
new file mode 100644
index 0000000..9a283df
--- /dev/null
+++ b/hiredis_ssl-config.cmake.in
@@ -0,0 +1,13 @@
+@PACKAGE_INIT@
+
+set_and_check(hiredis_ssl_INCLUDEDIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
+
+IF (NOT TARGET hiredis::hiredis_ssl)
+ INCLUDE(${CMAKE_CURRENT_LIST_DIR}/hiredis_ssl-targets.cmake)
+ENDIF()
+
+SET(hiredis_ssl_LIBRARIES hiredis::hiredis_ssl)
+SET(hiredis_ssl_INCLUDE_DIRS ${hiredis_ssl_INCLUDEDIR})
+
+check_required_components(hiredis_ssl)
+