diff --git a/Crypto/CMakeLists.txt b/Crypto/CMakeLists.txt index 38652d2f9..90bd7d52f 100644 --- a/Crypto/CMakeLists.txt +++ b/Crypto/CMakeLists.txt @@ -1,26 +1,35 @@ 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) -include_directories( include) +include_directories( include ${OPENSSL_INCLUDE_DIR} ) add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} ) 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( DIRECTORY include/Poco DESTINATION include PATTERN ".svn" EXCLUDE ) - + install( TARGETS ${LIBNAME} LIBRARY DESTINATION lib${LIB_SUFFIX}