CMakeLists.txt 894 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/advanced/server-flex "/")
  13. add_executable (advanced-server-flex
  14. ${BOOST_BEAST_FILES}
  15. ${PROJECT_SOURCE_DIR}/example/common/server_certificate.hpp
  16. Jamfile
  17. advanced_server_flex.cpp
  18. )
  19. set_property(TARGET advanced-server-flex PROPERTY FOLDER "example-advanced-server")
  20. target_link_libraries (advanced-server-flex
  21. OpenSSL::SSL OpenSSL::Crypto
  22. lib-asio
  23. lib-asio-ssl
  24. lib-beast
  25. )
  26. endif()