summaryrefslogtreecommitdiffstats
path: root/FindUECC.cmake
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-14 17:16:28 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-14 17:16:28 +0100
commitd9ed50094da3890b10872a4955dceb2817931f1f (patch)
tree15f83f511489e46bbb1df5ff2443a784b0a43815 /FindUECC.cmake
parent4cdee0ee4745a5bb44b9f2c95812cb4f1aea0a31 (diff)
downloadfastd-d9ed50094da3890b10872a4955dceb2817931f1f.tar
fastd-d9ed50094da3890b10872a4955dceb2817931f1f.zip
Require libuecc; rename cfxp to ecfxp; add some basic infrastructure for crypto implementation
Diffstat (limited to 'FindUECC.cmake')
-rw-r--r--FindUECC.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/FindUECC.cmake b/FindUECC.cmake
new file mode 100644
index 0000000..269c8f7
--- /dev/null
+++ b/FindUECC.cmake
@@ -0,0 +1,16 @@
+FIND_PATH(UECC_INCLUDE_DIR libuecc/ecc.h)
+FIND_LIBRARY(UECC_LIBRARY NAMES uecc)
+
+IF (UECC_INCLUDE_DIR AND UECC_LIBRARY)
+ SET(UECC_FOUND TRUE)
+ENDIF (UECC_INCLUDE_DIR AND UECC_LIBRARY)
+
+IF (UECC_FOUND)
+ IF (NOT UECC_FIND_QUIETLY)
+ MESSAGE(STATUS "Found libuecc: ${UECC_LIBRARY}; include path: ${UECC_INCLUDE_DIR}")
+ ENDIF (NOT UECC_FIND_QUIETLY)
+ELSE (UECC_FOUND)
+ IF (UECC_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "Could not find libuecc")
+ ENDIF (UECC_FIND_REQUIRED)
+ENDIF (UECC_FOUND)