trunk" cmake fix for openssl

This commit is contained in:
Marian Krivos 2012-02-10 15:37:48 +00:00
parent 4e26485542
commit a3a9b10b5e

View File

@ -1,26 +1,26 @@
set(LIBNAME "PocoCrypto") set(LIBNAME "PocoCrypto")
set(LIBNAME "${LIBNAME}${LIB_EXT}") set(LIBNAME "${LIBNAME}${LIB_EXT}")
aux_source_directory(src SRCS) aux_source_directory(src SRCS)
add_definitions(-D_USRDLL -DCrypto_EXPORTS)
include_directories( include) include_directories( include)
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} )
target_link_libraries( ${LIBNAME} PocoFoundation${LIB_EXT} ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY} ) target_link_libraries( ${LIBNAME} PocoFoundation${LIB_EXT} ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY} )
install( install(
DIRECTORY include/Poco DIRECTORY include/Poco
DESTINATION include DESTINATION include
PATTERN ".svn" EXCLUDE PATTERN ".svn" EXCLUDE
) )
install( install(
TARGETS ${LIBNAME} TARGETS ${LIBNAME}
DESTINATION lib DESTINATION lib
) )
if (ENABLE_TESTS) if (ENABLE_TESTS)
add_subdirectory(samples) add_subdirectory(samples)
add_subdirectory(testsuite) add_subdirectory(testsuite)
endif () endif ()