CMakeLists.txt 807 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. GroupSources (include/boost/beast beast)
  10. GroupSources (test/extern/zlib-1.2.11 zlib)
  11. GroupSources (test/bench/zlib "/")
  12. if (MSVC)
  13. set_source_files_properties (${ZLIB_SOURCES} PROPERTIES COMPILE_FLAGS "/wd4127 /wd4131 /wd4244")
  14. endif()
  15. add_executable (bench-zlib
  16. ${BOOST_BEAST_FILES}
  17. ${ZLIB_SOURCES}
  18. Jamfile
  19. deflate_stream.cpp
  20. inflate_stream.cpp
  21. )
  22. target_link_libraries(bench-zlib
  23. lib-asio
  24. lib-beast
  25. lib-test
  26. )
  27. set_property(TARGET bench-zlib PROPERTY FOLDER "tests-bench")