mirror of https://github.com/PurpleI2P/i2pd.git
Meeh
11 years ago
3 changed files with 1246 additions and 32 deletions
File diff suppressed because it is too large
Load Diff
@ -1,28 +1,35 @@ |
|||||||
# Find Crypto++ library |
# - Find Crypto++ |
||||||
# |
|
||||||
# Output variables : |
if(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES) |
||||||
# CryptoPP_FOUND |
set(CRYPTO++_FOUND TRUE) |
||||||
# CryptoPP_INCLUDE_DIRS |
|
||||||
# CryptoPP_LIBRARIES |
else(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES) |
||||||
# |
find_path(CRYPTO++_INCLUDE_DIR cryptlib.h |
||||||
|
/usr/include/crypto++ |
||||||
|
/usr/include/cryptopp |
||||||
FIND_PATH( CryptoPP_INCLUDE_DIR cryptopp/dsa.h ) |
/usr/local/include/crypto++ |
||||||
|
/usr/local/include/cryptopp |
||||||
FIND_LIBRARY( CryptoPP_LIBRARY NAMES cryptopp ) |
/opt/local/include/crypto++ |
||||||
|
/opt/local/include/cryptopp |
||||||
# handle the QUIETLY and REQUIRED arguments and set CRYPTOPP_FOUND to TRUE if |
$ENV{SystemDrive}/Crypto++/include |
||||||
# all listed variables are TRUE |
) |
||||||
INCLUDE(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake) |
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CryptoPP DEFAULT_MSG CryptoPP_LIBRARY CryptoPP_INCLUDE_DIR) |
find_library(CRYPTO++_LIBRARIES NAMES cryptopp |
||||||
|
PATHS |
||||||
set ( CryptoPP_FOUND FALSE ) |
/usr/lib |
||||||
|
/usr/local/lib |
||||||
if ( ${CRYPTOPP_FOUND} ) |
/opt/local/lib |
||||||
set ( CryptoPP_FOUND TRUE ) |
$ENV{SystemDrive}/Crypto++/lib |
||||||
set ( CryptoPP_INCLUDE_DIRS ${CryptoPP_INCLUDE_DIR} ) |
) |
||||||
set ( CryptoPP_LIBRARIES ${CryptoPP_LIBRARY} ) |
|
||||||
endif () |
if(CRYPTO++_INCLUDE_DIR AND CRYPTO++_LIBRARIES) |
||||||
|
set(CRYPTO++_FOUND TRUE) |
||||||
MARK_AS_ADVANCED(CryptoPP_INCLUDE_DIR CryptoPP_LIBRARY) |
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) |
||||||
|
Loading…
Reference in new issue