summaryrefslogtreecommitdiff
path: root/cmake/FindcyaSSL.cmake
diff options
context:
space:
mode:
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)