mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
trunk" cmake fix for openssl
This commit is contained in:
parent
4e26485542
commit
a3a9b10b5e
@ -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 ()
|
||||
|
Loading…
Reference in New Issue
Block a user