mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-26 18:11:29 +02:00
cmake: Crypto cleanup
- explicitly list files - add OpenSSL include directory to include path - remove unused code Reviewed-by: Roger Meier <r.meier@siemens.com>
This commit is contained in:
parent
ac68b49897
commit
216ecd3ec2
@ -1,18 +1,27 @@
|
|||||||
set(LIBNAME "PocoCrypto")
|
set(LIBNAME "PocoCrypto")
|
||||||
|
|
||||||
aux_source_directory(src SRCS)
|
set(SRCS
|
||||||
|
src/Cipher.cpp
|
||||||
|
src/CipherFactory.cpp
|
||||||
|
src/CipherImpl.cpp
|
||||||
|
src/CipherKey.cpp
|
||||||
|
src/CipherKeyImpl.cpp
|
||||||
|
src/CryptoStream.cpp
|
||||||
|
src/CryptoTransform.cpp
|
||||||
|
src/DigestEngine.cpp
|
||||||
|
src/OpenSSLInitializer.cpp
|
||||||
|
src/RSACipherImpl.cpp
|
||||||
|
src/RSADigestEngine.cpp
|
||||||
|
src/RSAKey.cpp
|
||||||
|
src/RSAKeyImpl.cpp
|
||||||
|
src/X509Certificate.cpp
|
||||||
|
)
|
||||||
add_definitions(-D_USRDLL -DCrypto_EXPORTS)
|
add_definitions(-D_USRDLL -DCrypto_EXPORTS)
|
||||||
include_directories( include)
|
include_directories( include ${OPENSSL_INCLUDE_DIR} )
|
||||||
|
|
||||||
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
||||||
set_target_properties( ${LIBNAME} PROPERTIES VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
set_target_properties( ${LIBNAME} PROPERTIES VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
||||||
|
|
||||||
#if(CMAKE_SYSTEM MATCHES "Windows")
|
|
||||||
# target_link_libraries( ${LIBNAME} PocoFoundation ${LIB_EAY_RELEASE} ${OPENSSL_LIBRARIES} )
|
|
||||||
#ELSE()
|
|
||||||
# target_link_libraries( ${LIBNAME} PocoFoundation ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY} )
|
|
||||||
#ENDIF()
|
|
||||||
|
|
||||||
target_link_libraries( ${LIBNAME} PocoFoundation ${OPENSSL_LIBRARIES} )
|
target_link_libraries( ${LIBNAME} PocoFoundation ${OPENSSL_LIBRARIES} )
|
||||||
|
|
||||||
install(
|
install(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user