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
+15 -12
View File
@@ -7,17 +7,20 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/server/async-ssl "/")
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/server/async-ssl "/")
add_executable (http-server-async-ssl
${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
http_server_async_ssl.cpp
)
target_link_libraries (http-server-async-ssl
${OPENSSL_LIBRARIES}
add_executable (http-server-async-ssl
${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
http_server_async_ssl.cpp
)
target_link_libraries (http-server-async-ssl
${OPENSSL_LIBRARIES}
)
endif()
+15 -12
View File
@@ -7,17 +7,20 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/server/coro-ssl "/")
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/server/coro-ssl "/")
add_executable (http-server-coro-ssl
${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
http_server_coro_ssl.cpp
)
target_link_libraries (http-server-coro-ssl
${OPENSSL_LIBRARIES}
add_executable (http-server-coro-ssl
${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
http_server_coro_ssl.cpp
)
target_link_libraries (http-server-coro-ssl
${OPENSSL_LIBRARIES}
)
endif()
+16 -13
View File
@@ -7,18 +7,21 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/server/flex "/")
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/server/flex "/")
add_executable (http-server-flex
${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/detect_ssl.hpp
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
http_server_flex.cpp
)
target_link_libraries (http-server-flex
${OPENSSL_LIBRARIES}
add_executable (http-server-flex
${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/detect_ssl.hpp
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
http_server_flex.cpp
)
target_link_libraries (http-server-flex
${OPENSSL_LIBRARIES}
)
endif()
@@ -7,17 +7,20 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/server/stackless-ssl "/")
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/server/stackless-ssl "/")
add_executable (http-server-stackless-ssl
${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
http_server_stackless_ssl.cpp
)
target_link_libraries (http-server-stackless-ssl
${OPENSSL_LIBRARIES}
add_executable (http-server-stackless-ssl
${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
http_server_stackless_ssl.cpp
)
target_link_libraries (http-server-stackless-ssl
${OPENSSL_LIBRARIES}
)
endif()
+14 -11
View File
@@ -7,16 +7,19 @@
# Official repository: https://github.com/boostorg/beast
#
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/server/sync-ssl "/")
if (OPENSSL_FOUND)
GroupSources(include/boost/beast beast)
GroupSources(example/common common)
GroupSources(example/http/server/sync-ssl "/")
add_executable (http-server-sync-ssl
${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
http_server_sync_ssl.cpp
)
target_link_libraries (http-server-sync-ssl
${OPENSSL_LIBRARIES}
add_executable (http-server-sync-ssl
${BOOST_BEAST_INCLUDES}
${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
Jamfile
http_server_sync_ssl.cpp
)
target_link_libraries (http-server-sync-ssl
${OPENSSL_LIBRARIES}
)
endif()