2020-05-08 14:11:19 +00:00
|
|
|
if (ENABLE_SSL)
|
2022-01-17 20:05:15 +00:00
|
|
|
set (SRCS
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/Cipher.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/CipherFactory.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/CipherImpl.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/CipherKey.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/CipherKeyImpl.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/CryptoException.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/CryptoStream.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/CryptoTransform.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/DigestEngine.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/ECDSADigestEngine.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/ECKey.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/ECKeyImpl.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/EVPPKey.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/KeyPair.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/KeyPairImpl.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/OpenSSLInitializer.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/PKCS12Container.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/RSACipherImpl.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/RSADigestEngine.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/RSAKey.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/RSAKeyImpl.cpp"
|
|
|
|
"${LIBRARY_DIR}/Crypto/src/X509Certificate.cpp"
|
|
|
|
)
|
2020-05-08 14:11:19 +00:00
|
|
|
|
2022-01-17 20:05:15 +00:00
|
|
|
add_library (_poco_crypto ${SRCS})
|
|
|
|
add_library (Poco::Crypto ALIAS _poco_crypto)
|
2020-05-08 14:11:19 +00:00
|
|
|
|
2022-01-17 20:05:15 +00:00
|
|
|
target_compile_options (_poco_crypto PRIVATE -Wno-newline-eof)
|
|
|
|
target_include_directories (_poco_crypto SYSTEM PUBLIC "${LIBRARY_DIR}/Crypto/include")
|
2022-01-20 14:08:45 +00:00
|
|
|
target_link_libraries (_poco_crypto PUBLIC Poco::Foundation OpenSSL::SSL OpenSSL::Crypto)
|
2020-05-08 14:11:19 +00:00
|
|
|
|
|
|
|
message (STATUS "Using Poco::Crypto")
|
|
|
|
else ()
|
|
|
|
add_library (_poco_crypto INTERFACE)
|
|
|
|
add_library (Poco::Crypto ALIAS _poco_crypto)
|
|
|
|
|
|
|
|
message (STATUS "Not using Poco::Crypto")
|
|
|
|
endif ()
|