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