summaryrefslogtreecommitdiff
path: root/cmake/FindcyaSSL.cmake
diff options
context:
space:
mode:
authorAlan Antonuk <aega@med.umich.edu>2012-05-25 11:14:43 -0400
committerAlan Antonuk <alan.antonuk@gmail.com>2013-04-09 15:31:54 -0700
commit0d20182b220d28c793e710bb0c0e431dade3022d (patch)
treee3365c5fda1578709ea0812979a55489c2235dc8 /cmake/FindcyaSSL.cmake
parentf371e0ae2697031a42cfd573079c9261bc731091 (diff)
downloadrabbitmq-c-0d20182b220d28c793e710bb0c0e431dade3022d.tar.gz
Adding support for SSL to CMake build system
Diffstat (limited to 'cmake/FindcyaSSL.cmake')
-rw-r--r--cmake/FindcyaSSL.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/cmake/FindcyaSSL.cmake b/cmake/FindcyaSSL.cmake
new file mode 100644
index 0000000..80452bb
--- /dev/null
+++ b/cmake/FindcyaSSL.cmake
@@ -0,0 +1,17 @@
+INCLUDE(LibFindMacros)
+
+# Find the include directories
+FIND_PATH(CYASSL_INCLUDE_DIR
+ NAMES cyassl/ssl.h
+ HINTS ${CYASSL_PREFIX}/include
+ )
+
+FIND_LIBRARY(CYASSL_LIBRARY
+ NAMES cyassl
+ HINTS ${CYASSL_PREFIX}/lib
+ )
+
+SET(CYASSL_PROCESS_INCLUDES CYASSL_INCLUDE_DIR)
+SET(CYASSL_PROCESS_LIBS CYASSL_LIBRARY)
+
+LIBFIND_PROCESS(CYASSL)