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 10include_directories (./extern) 11include_directories (./extras/include) 12 13file (GLOB_RECURSE EXTRAS_FILES 14 ${PROJECT_SOURCE_DIR}/test/extras/include/*.hpp 15 ${PROJECT_SOURCE_DIR}/test/extras/include/*.ipp 16 ${PROJECT_SOURCE_DIR}/test/lib_ssl.cpp 17 ) 18 19if (OPENSSL_FOUND) 20 link_libraries (${OPENSSL_LIBRARIES}) 21endif() 22 23set (ZLIB_SOURCES 24 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/crc32.h 25 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/deflate.h 26 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/inffast.h 27 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/inffixed.h 28 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/inflate.h 29 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/inftrees.h 30 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/trees.h 31 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/zlib.h 32 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/zutil.h 33 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/adler32.c 34 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/compress.c 35 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/crc32.c 36 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/deflate.c 37 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/infback.c 38 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/inffast.c 39 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/inflate.c 40 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/inftrees.c 41 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/trees.c 42 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/uncompr.c 43 ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/zutil.c 44) 45 46set (TEST_MAIN ${PROJECT_SOURCE_DIR}/test/lib_beast.cpp) 47 48GroupSources (. "/") 49 50add_library ( 51 lib-test STATIC 52 ${CMAKE_CURRENT_LIST_DIR}/lib_test.cpp 53) 54 55set_property(TARGET lib-test PROPERTY FOLDER "static-libs") 56 57add_subdirectory (beast) 58add_subdirectory (bench) 59add_subdirectory (doc) 60add_subdirectory (example) 61