OpenSSL targets are optional (CMake)

This commit is contained in:
Vinnie Falco
2017-10-01 10:33:49 -07:00
parent bbc1f14347
commit c0cf030528
17 changed files with 243 additions and 194 deletions

View File

@ -1,6 +1,7 @@
Version 120: Version 120:
* Fix spurious strand_ in advanced_server_flex * Fix spurious strand_ in advanced_server_flex
* OpenSSL targets are optional (CMake)
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View File

@ -7,19 +7,22 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(include/boost/beast beast) if (OPENSSL_FOUND)
GroupSources(example/common common) GroupSources(include/boost/beast beast)
GroupSources(example/advanced/server-flex "/") GroupSources(example/common common)
GroupSources(example/advanced/server-flex "/")
add_executable (advanced-server-flex add_executable (advanced-server-flex
${BOOST_BEAST_INCLUDES} ${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/detect_ssl.hpp ${PROJECT_SOURCE_DIR}/example/common/detect_ssl.hpp
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
${PROJECT_SOURCE_DIR}/example/common/ssl_stream.hpp ${PROJECT_SOURCE_DIR}/example/common/ssl_stream.hpp
Jamfile Jamfile
advanced_server_flex.cpp advanced_server_flex.cpp
)
target_link_libraries (advanced-server-flex
${OPENSSL_LIBRARIES}
) )
target_link_libraries (advanced-server-flex
${OPENSSL_LIBRARIES}
)
endif()

View File

@ -7,17 +7,20 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(include/boost/beast beast) if (OPENSSL_FOUND)
GroupSources(example/common common) GroupSources(include/boost/beast beast)
GroupSources(example/http/client/async-ssl "/") GroupSources(example/common common)
GroupSources(example/http/client/async-ssl "/")
add_executable (http-client-async-ssl add_executable (http-client-async-ssl
${BOOST_BEAST_INCLUDES} ${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp ${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
Jamfile Jamfile
http_client_async_ssl.cpp http_client_async_ssl.cpp
)
target_link_libraries (http-client-async-ssl
${OPENSSL_LIBRARIES}
) )
target_link_libraries (http-client-async-ssl
${OPENSSL_LIBRARIES}
)
endif()

View File

@ -7,17 +7,20 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(include/boost/beast beast) if (OPENSSL_FOUND)
GroupSources(example/common common) GroupSources(include/boost/beast beast)
GroupSources(example/http/client/coro-ssl "/") GroupSources(example/common common)
GroupSources(example/http/client/coro-ssl "/")
add_executable (http-client-coro-ssl add_executable (http-client-coro-ssl
${BOOST_BEAST_INCLUDES} ${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp ${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
Jamfile Jamfile
http_client_coro_ssl.cpp http_client_coro_ssl.cpp
)
target_link_libraries (http-client-coro-ssl
${OPENSSL_LIBRARIES}
) )
target_link_libraries (http-client-coro-ssl
${OPENSSL_LIBRARIES}
)
endif()

View File

@ -7,17 +7,20 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(include/boost/beast beast) if (OPENSSL_FOUND)
GroupSources(example/common common) GroupSources(include/boost/beast beast)
GroupSources(example/http/client/sync-ssl "/") GroupSources(example/common common)
GroupSources(example/http/client/sync-ssl "/")
add_executable (http-client-sync-ssl add_executable (http-client-sync-ssl
${BOOST_BEAST_INCLUDES} ${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp ${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
Jamfile Jamfile
http_client_sync_ssl.cpp http_client_sync_ssl.cpp
)
target_link_libraries (http-client-sync-ssl
${OPENSSL_LIBRARIES}
) )
target_link_libraries (http-client-sync-ssl
${OPENSSL_LIBRARIES}
)
endif()

View File

@ -7,17 +7,20 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(include/boost/beast beast) if (OPENSSL_FOUND)
GroupSources(example/common common) GroupSources(include/boost/beast beast)
GroupSources(example/http/server/async-ssl "/") GroupSources(example/common common)
GroupSources(example/http/server/async-ssl "/")
add_executable (http-server-async-ssl add_executable (http-server-async-ssl
${BOOST_BEAST_INCLUDES} ${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile Jamfile
http_server_async_ssl.cpp http_server_async_ssl.cpp
)
target_link_libraries (http-server-async-ssl
${OPENSSL_LIBRARIES}
) )
target_link_libraries (http-server-async-ssl
${OPENSSL_LIBRARIES}
)
endif()

View File

@ -7,17 +7,20 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(include/boost/beast beast) if (OPENSSL_FOUND)
GroupSources(example/common common) GroupSources(include/boost/beast beast)
GroupSources(example/http/server/coro-ssl "/") GroupSources(example/common common)
GroupSources(example/http/server/coro-ssl "/")
add_executable (http-server-coro-ssl add_executable (http-server-coro-ssl
${BOOST_BEAST_INCLUDES} ${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile Jamfile
http_server_coro_ssl.cpp http_server_coro_ssl.cpp
)
target_link_libraries (http-server-coro-ssl
${OPENSSL_LIBRARIES}
) )
target_link_libraries (http-server-coro-ssl
${OPENSSL_LIBRARIES}
)
endif()

View File

@ -7,18 +7,21 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(include/boost/beast beast) if (OPENSSL_FOUND)
GroupSources(example/common common) GroupSources(include/boost/beast beast)
GroupSources(example/http/server/flex "/") GroupSources(example/common common)
GroupSources(example/http/server/flex "/")
add_executable (http-server-flex add_executable (http-server-flex
${BOOST_BEAST_INCLUDES} ${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/detect_ssl.hpp ${PROJECT_SOURCE_DIR}/example/common/detect_ssl.hpp
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile Jamfile
http_server_flex.cpp http_server_flex.cpp
)
target_link_libraries (http-server-flex
${OPENSSL_LIBRARIES}
) )
target_link_libraries (http-server-flex
${OPENSSL_LIBRARIES}
)
endif()

View File

@ -7,17 +7,20 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(include/boost/beast beast) if (OPENSSL_FOUND)
GroupSources(example/common common) GroupSources(include/boost/beast beast)
GroupSources(example/http/server/stackless-ssl "/") GroupSources(example/common common)
GroupSources(example/http/server/stackless-ssl "/")
add_executable (http-server-stackless-ssl add_executable (http-server-stackless-ssl
${BOOST_BEAST_INCLUDES} ${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile Jamfile
http_server_stackless_ssl.cpp http_server_stackless_ssl.cpp
)
target_link_libraries (http-server-stackless-ssl
${OPENSSL_LIBRARIES}
) )
target_link_libraries (http-server-stackless-ssl
${OPENSSL_LIBRARIES}
)
endif()

View File

@ -7,16 +7,19 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(include/boost/beast beast) if (OPENSSL_FOUND)
GroupSources(example/common common) GroupSources(include/boost/beast beast)
GroupSources(example/http/server/sync-ssl "/") GroupSources(example/common common)
GroupSources(example/http/server/sync-ssl "/")
add_executable (http-server-sync-ssl add_executable (http-server-sync-ssl
${BOOST_BEAST_INCLUDES} ${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile Jamfile
http_server_sync_ssl.cpp http_server_sync_ssl.cpp
)
target_link_libraries (http-server-sync-ssl
${OPENSSL_LIBRARIES}
) )
target_link_libraries (http-server-sync-ssl
${OPENSSL_LIBRARIES}
)
endif()

View File

@ -7,17 +7,20 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(include/boost/beast beast) if (OPENSSL_FOUND)
GroupSources(example/common common) GroupSources(include/boost/beast beast)
GroupSources(example/websocket/client/async-ssl "/") GroupSources(example/common common)
GroupSources(example/websocket/client/async-ssl "/")
add_executable (websocket-client-async-ssl add_executable (websocket-client-async-ssl
${BOOST_BEAST_INCLUDES} ${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp ${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
Jamfile Jamfile
websocket_client_async_ssl.cpp websocket_client_async_ssl.cpp
)
target_link_libraries (websocket-client-async-ssl
${OPENSSL_LIBRARIES}
) )
target_link_libraries (websocket-client-async-ssl
${OPENSSL_LIBRARIES}
)
endif()

View File

@ -7,17 +7,20 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(include/boost/beast beast) if (OPENSSL_FOUND)
GroupSources(example/common common) GroupSources(include/boost/beast beast)
GroupSources(example/websocket/client/coro-ssl "/") GroupSources(example/common common)
GroupSources(example/websocket/client/coro-ssl "/")
add_executable (websocket-client-coro-ssl add_executable (websocket-client-coro-ssl
${BOOST_BEAST_INCLUDES} ${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp ${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
Jamfile Jamfile
websocket_client_coro_ssl.cpp websocket_client_coro_ssl.cpp
)
target_link_libraries (websocket-client-coro-ssl
${OPENSSL_LIBRARIES}
) )
target_link_libraries (websocket-client-coro-ssl
${OPENSSL_LIBRARIES}
)
endif()

View File

@ -7,17 +7,20 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(include/boost/beast beast) if (OPENSSL_FOUND)
GroupSources(example/common common) GroupSources(include/boost/beast beast)
GroupSources(example/websocket/client/sync-ssl "/") GroupSources(example/common common)
GroupSources(example/websocket/client/sync-ssl "/")
add_executable (websocket-client-sync-ssl add_executable (websocket-client-sync-ssl
${BOOST_BEAST_INCLUDES} ${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp ${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
Jamfile Jamfile
websocket_client_sync_ssl.cpp websocket_client_sync_ssl.cpp
)
target_link_libraries (websocket-client-sync-ssl
${OPENSSL_LIBRARIES}
) )
target_link_libraries (websocket-client-sync-ssl
${OPENSSL_LIBRARIES}
)
endif()

View File

@ -7,17 +7,20 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(include/boost/beast beast) if (OPENSSL_FOUND)
GroupSources(example/common common) GroupSources(include/boost/beast beast)
GroupSources(example/websocket/server/async-ssl "/") GroupSources(example/common common)
GroupSources(example/websocket/server/async-ssl "/")
add_executable (websocket-server-async-ssl add_executable (websocket-server-async-ssl
${BOOST_BEAST_INCLUDES} ${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile Jamfile
websocket_server_async_ssl.cpp websocket_server_async_ssl.cpp
)
target_link_libraries (websocket-server-async-ssl
${OPENSSL_LIBRARIES}
) )
target_link_libraries (websocket-server-async-ssl
${OPENSSL_LIBRARIES}
)
endif()

View File

@ -7,17 +7,20 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(include/boost/beast beast) if (OPENSSL_FOUND)
GroupSources(example/common common) GroupSources(include/boost/beast beast)
GroupSources(example/websocket/server/coro-ssl "/") GroupSources(example/common common)
GroupSources(example/websocket/server/coro-ssl "/")
add_executable (websocket-server-coro-ssl add_executable (websocket-server-coro-ssl
${BOOST_BEAST_INCLUDES} ${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile Jamfile
websocket_server_coro_ssl.cpp websocket_server_coro_ssl.cpp
)
target_link_libraries (websocket-server-coro-ssl
${OPENSSL_LIBRARIES}
) )
target_link_libraries (websocket-server-coro-ssl
${OPENSSL_LIBRARIES}
)
endif()

View File

@ -7,17 +7,20 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(include/boost/beast beast) if (OPENSSL_FOUND)
GroupSources(example/common common) GroupSources(include/boost/beast beast)
GroupSources(example/websocket/server/stackless-ssl "/") GroupSources(example/common common)
GroupSources(example/websocket/server/stackless-ssl "/")
add_executable (websocket-server-stackless-ssl add_executable (websocket-server-stackless-ssl
${BOOST_BEAST_INCLUDES} ${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile Jamfile
websocket_server_stackless_ssl.cpp websocket_server_stackless_ssl.cpp
)
target_link_libraries (websocket-server-stackless-ssl
${OPENSSL_LIBRARIES}
) )
target_link_libraries (websocket-server-stackless-ssl
${OPENSSL_LIBRARIES}
)
endif()

View File

@ -7,17 +7,20 @@
# Official repository: https://github.com/boostorg/beast # Official repository: https://github.com/boostorg/beast
# #
GroupSources(include/boost/beast beast) if (OPENSSL_FOUND)
GroupSources(example/common common) GroupSources(include/boost/beast beast)
GroupSources(example/websocket/server/sync-ssl "/") GroupSources(example/common common)
GroupSources(example/websocket/server/sync-ssl "/")
add_executable (websocket-server-sync-ssl add_executable (websocket-server-sync-ssl
${BOOST_BEAST_INCLUDES} ${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile Jamfile
websocket_server_sync_ssl.cpp websocket_server_sync_ssl.cpp
)
target_link_libraries (websocket-server-sync-ssl
${OPENSSL_LIBRARIES}
) )
target_link_libraries (websocket-server-sync-ssl
${OPENSSL_LIBRARIES}
)
endif()