9170a0daaa
This example HTTP client application uses the `system_executor` to show how to use it with the I/O objects in ASIO and Beast. Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
32 lines
970 B
CMake
32 lines
970 B
CMake
#
|
|
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
|
|
#
|
|
# Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
#
|
|
# Official repository: https://github.com/boostorg/beast
|
|
#
|
|
|
|
if (OPENSSL_FOUND)
|
|
GroupSources(include/boost/beast beast)
|
|
GroupSources(example/common common)
|
|
GroupSources(example/http/client/async-ssl-system-executor "/")
|
|
|
|
add_executable (http-client-async-ssl-system-executor
|
|
${BOOST_BEAST_FILES}
|
|
${PROJECT_SOURCE_DIR}/example/common/root_certificates.hpp
|
|
Jamfile
|
|
http_client_async_ssl_system_executor.cpp
|
|
)
|
|
|
|
set_property(TARGET http-client-async-ssl-system-executor PROPERTY FOLDER "example-http-client")
|
|
|
|
target_link_libraries (http-client-async-ssl-system-executor
|
|
OpenSSL::SSL OpenSSL::Crypto
|
|
lib-asio
|
|
lib-asio-ssl
|
|
lib-beast
|
|
)
|
|
|
|
endif()
|