2009-02-17 20:02:37 +00:00
|
|
|
set(LIBNAME "PocoCrypto")
|
2012-01-08 19:10:15 +00:00
|
|
|
set(LIBNAME "${LIBNAME}${LIB_EXT}")
|
2009-02-17 20:02:37 +00:00
|
|
|
|
|
|
|
aux_source_directory(src SRCS)
|
|
|
|
|
|
|
|
include_directories( include)
|
|
|
|
|
|
|
|
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
2012-01-07 13:45:03 +00:00
|
|
|
set_target_properties( ${LIBNAME} PROPERTIES VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} )
|
2012-01-08 19:10:15 +00:00
|
|
|
target_link_libraries( ${LIBNAME} PocoNetSSL${LIB_EXT} PocoNet${LIB_EXT} ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY} )
|
2009-02-17 20:02:37 +00:00
|
|
|
|
2009-02-18 20:47:32 +00:00
|
|
|
install(
|
|
|
|
DIRECTORY include/Poco
|
|
|
|
DESTINATION include
|
2009-04-27 19:22:30 +00:00
|
|
|
PATTERN ".svn" EXCLUDE
|
2009-02-18 20:47:32 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
2012-01-07 13:45:03 +00:00
|
|
|
TARGETS ${LIBNAME}
|
2009-02-18 20:47:32 +00:00
|
|
|
DESTINATION lib
|
|
|
|
)
|
2009-02-19 20:35:03 +00:00
|
|
|
|
2011-01-22 11:46:03 +00:00
|
|
|
if (ENABLE_TESTS)
|
|
|
|
add_subdirectory(samples)
|
|
|
|
add_subdirectory(testsuite)
|
|
|
|
endif ()
|