From a3a9b10b5e806aba6895473da9f05d921671e33d Mon Sep 17 00:00:00 2001 From: Marian Krivos Date: Fri, 10 Feb 2012 15:37:48 +0000 Subject: [PATCH] trunk" cmake fix for openssl --- Crypto/CMakeLists.txt | 52 +++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/Crypto/CMakeLists.txt b/Crypto/CMakeLists.txt index a32552084..5eff60ec2 100644 --- a/Crypto/CMakeLists.txt +++ b/Crypto/CMakeLists.txt @@ -1,26 +1,26 @@ -set(LIBNAME "PocoCrypto") -set(LIBNAME "${LIBNAME}${LIB_EXT}") - -aux_source_directory(src SRCS) - -include_directories( include) - -add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} ) -set_target_properties( ${LIBNAME} PROPERTIES VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} ) -target_link_libraries( ${LIBNAME} PocoFoundation${LIB_EXT} ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY} ) - -install( - DIRECTORY include/Poco - DESTINATION include - PATTERN ".svn" EXCLUDE - ) - -install( - TARGETS ${LIBNAME} - DESTINATION lib - ) - -if (ENABLE_TESTS) - add_subdirectory(samples) - add_subdirectory(testsuite) -endif () +set(LIBNAME "PocoCrypto") +set(LIBNAME "${LIBNAME}${LIB_EXT}") + +aux_source_directory(src SRCS) +add_definitions(-D_USRDLL -DCrypto_EXPORTS) +include_directories( include) + +add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} ) +set_target_properties( ${LIBNAME} PROPERTIES VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} ) +target_link_libraries( ${LIBNAME} PocoFoundation${LIB_EXT} ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY} ) + +install( + DIRECTORY include/Poco + DESTINATION include + PATTERN ".svn" EXCLUDE + ) + +install( + TARGETS ${LIBNAME} + DESTINATION lib + ) + +if (ENABLE_TESTS) + add_subdirectory(samples) + add_subdirectory(testsuite) +endif ()