summaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-11-03 17:55:39 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-11-03 17:55:39 +0100
commitdea7f60fa1ae6a46228daa36bcb3fec1a6c6ffc3 (patch)
tree3cf88964be57e41f50dd1f65a29e96f8dae581f7 /cmake/Modules
parentd834d6ed0647ba7e51e81f600fe259156e2b8070 (diff)
downloadbiboumi-dea7f60fa1ae6a46228daa36bcb3fec1a6c6ffc3.tar.gz
biboumi-dea7f60fa1ae6a46228daa36bcb3fec1a6c6ffc3.tar.bz2
biboumi-dea7f60fa1ae6a46228daa36bcb3fec1a6c6ffc3.tar.xz
biboumi-dea7f60fa1ae6a46228daa36bcb3fec1a6c6ffc3.zip
Add FindCryptoPP to the cmake search stuf
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/FindCryptopp.cmake35
1 files changed, 35 insertions, 0 deletions
diff --git a/cmake/Modules/FindCryptopp.cmake b/cmake/Modules/FindCryptopp.cmake
new file mode 100644
index 0000000..7a8ac31
--- /dev/null
+++ b/cmake/Modules/FindCryptopp.cmake
@@ -0,0 +1,35 @@
+# - Find Crypto++
+
+if(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES)
+ set(CRYPTO++_FOUND TRUE)
+
+else(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES)
+ find_path(CRYPTO++_INCLUDE_DIR cryptlib.h
+ /usr/include/crypto++
+ /usr/include/cryptopp
+ /usr/local/include/crypto++
+ /usr/local/include/cryptopp
+ /opt/local/include/crypto++
+ /opt/local/include/cryptopp
+ $ENV{SystemDrive}/Crypto++/include
+ )
+
+ find_library(CRYPTO++_LIBRARIES NAMES cryptopp
+ PATHS
+ /usr/lib
+ /usr/local/lib
+ /opt/local/lib
+ $ENV{SystemDrive}/Crypto++/lib
+ )
+
+ if(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES)
+ set(CRYPTO++_FOUND TRUE)
+ message(STATUS "Found Crypto++: ${CRYPTO++_INCLUDE_DIR}, ${CRYPTO++_LIBRARIES}")
+ else(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES)
+ set(CRYPTO++_FOUND FALSE)
+ message(STATUS "Crypto++ not found.")
+ endif(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES)
+
+ mark_as_advanced(CRYPTO++_INCLUDE_DIR CRYPTO++_LIBRARIES)
+
+endif(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES)