CMakeLists.txt 911 B

12345678910111213141516171819202122232425262728293031
  1. #
  2. # Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
  3. #
  4. # Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. #
  7. # Official repository: https://github.com/boostorg/beast
  8. #
  9. if (OPENSSL_FOUND)
  10. GroupSources(include/boost/beast beast)
  11. GroupSources(example/common common)
  12. GroupSources(example/http/server/stackless-ssl "/")
  13. add_executable (http-server-stackless-ssl
  14. ${BOOST_BEAST_FILES}
  15. ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
  16. Jamfile
  17. http_server_stackless_ssl.cpp
  18. )
  19. set_property(TARGET http-server-stackless-ssl PROPERTY FOLDER "example-http-server")
  20. target_link_libraries (http-server-stackless-ssl
  21. OpenSSL::SSL OpenSSL::Crypto
  22. lib-asio
  23. lib-asio-ssl
  24. lib-beast
  25. )
  26. endif()