CMakeLists.txt 916 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. GroupSources(include/boost/beast beast)
  10. GroupSources(example/websocket/server/chat-multi "/")
  11. file (GLOB APP_FILES
  12. beast.hpp
  13. http_session.cpp
  14. http_session.hpp
  15. Jamfile
  16. listener.cpp
  17. listener.hpp
  18. main.cpp
  19. net.hpp
  20. shared_state.cpp
  21. shared_state.hpp
  22. websocket_session.cpp
  23. websocket_session.hpp
  24. chat_client.html
  25. README.md
  26. )
  27. source_group ("" FILES ${APP_FILES})
  28. add_executable (websocket-chat-multi
  29. ${APP_FILES}
  30. ${BOOST_BEAST_FILES}
  31. )
  32. target_link_libraries(websocket-chat-multi
  33. lib-asio
  34. lib-beast)
  35. set_property(TARGET websocket-chat-multi PROPERTY FOLDER "example-websocket-server")