2009-02-17 21:02:37 +01:00
|
|
|
set(LIBNAME "PocoNetSSL")
|
|
|
|
set(LIBNAMED "${LIBNAME}d")
|
|
|
|
|
|
|
|
aux_source_directory(src SRCS)
|
|
|
|
|
|
|
|
add_library( ${LIBNAME} ${LIB_MODE} ${SRCS} )
|
|
|
|
set_target_properties( ${LIBNAME}
|
2009-08-26 14:26:22 +02:00
|
|
|
PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS}
|
2009-02-17 21:02:37 +01:00
|
|
|
VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}
|
|
|
|
SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
|
|
|
|
target_link_libraries( ${LIBNAME} ssl crypto)
|
|
|
|
|
|
|
|
add_library( ${LIBNAMED} ${LIB_MODE} ${SRCS} )
|
|
|
|
set_target_properties( ${LIBNAMED}
|
2009-08-26 14:26:22 +02:00
|
|
|
PROPERTIES COMPILE_FLAGS "${DEBUG_CXX_FLAGS}"
|
2009-02-17 21:02:37 +01:00
|
|
|
VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}
|
|
|
|
SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
|
|
|
|
target_link_libraries( ${LIBNAMED} ssl crypto)
|
2009-02-18 21:47:32 +01:00
|
|
|
|
|
|
|
install(
|
|
|
|
DIRECTORY include/Poco
|
|
|
|
DESTINATION include
|
2009-04-27 21:22:30 +02:00
|
|
|
PATTERN ".svn" EXCLUDE
|
2009-02-18 21:47:32 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS ${LIBNAME} ${LIBNAMED}
|
|
|
|
DESTINATION lib
|
|
|
|
)
|
2009-02-21 10:58:44 +01:00
|
|
|
|
2011-01-22 12:46:03 +01:00
|
|
|
if (ENABLE_TESTS)
|
|
|
|
add_subdirectory(samples)
|
|
|
|
add_subdirectory(testsuite)
|
|
|
|
endif ()
|
|
|
|
|