mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-30 12:47:48 +02:00
CMAKE support added
This commit is contained in:
parent
879306b0d4
commit
adbfa688ba
2 changed files with 122 additions and 0 deletions
28
build/cmake_modules/FindCryptoPP.cmake
Normal file
28
build/cmake_modules/FindCryptoPP.cmake
Normal file
|
@ -0,0 +1,28 @@
|
|||
# Find Crypto++ library
|
||||
#
|
||||
# Output variables :
|
||||
# CryptoPP_FOUND
|
||||
# CryptoPP_INCLUDE_DIRS
|
||||
# CryptoPP_LIBRARIES
|
||||
#
|
||||
|
||||
|
||||
FIND_PATH( CryptoPP_INCLUDE_DIR cryptopp/dsa.h )
|
||||
|
||||
FIND_LIBRARY( CryptoPP_LIBRARY NAMES cryptopp )
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set CRYPTOPP_FOUND to TRUE if
|
||||
# all listed variables are TRUE
|
||||
INCLUDE(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CryptoPP DEFAULT_MSG CryptoPP_LIBRARY CryptoPP_INCLUDE_DIR)
|
||||
|
||||
set ( CryptoPP_FOUND FALSE )
|
||||
|
||||
if ( ${CRYPTOPP_FOUND} )
|
||||
set ( CryptoPP_FOUND TRUE )
|
||||
set ( CryptoPP_INCLUDE_DIRS ${CryptoPP_INCLUDE_DIR} )
|
||||
set ( CryptoPP_LIBRARIES ${CryptoPP_LIBRARY} )
|
||||
endif ()
|
||||
|
||||
MARK_AS_ADVANCED(CryptoPP_INCLUDE_DIR CryptoPP_LIBRARY)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue