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

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