summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/beast/test/CMakeLists.txt
blob: 9e474bc14988bc086329ae6dfd11bfecaad4e32a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
# Official repository: https://github.com/boostorg/beast
#

include_directories (./extern)
include_directories (./extras/include)

file (GLOB_RECURSE EXTRAS_FILES
    ${PROJECT_SOURCE_DIR}/test/extras/include/*.hpp
    ${PROJECT_SOURCE_DIR}/test/extras/include/*.ipp
    ${PROJECT_SOURCE_DIR}/test/lib_ssl.cpp
    )

if (OPENSSL_FOUND)
    link_libraries (${OPENSSL_LIBRARIES})
endif()

set (ZLIB_SOURCES
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/crc32.h
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/deflate.h
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/inffast.h
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/inffixed.h
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/inflate.h
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/inftrees.h
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/trees.h
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/zlib.h
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/zutil.h
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/adler32.c
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/compress.c
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/crc32.c
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/deflate.c
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/infback.c
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/inffast.c
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/inflate.c
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/inftrees.c
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/trees.c
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/uncompr.c
    ${CMAKE_CURRENT_LIST_DIR}/extern/zlib-1.2.11/zutil.c
)

set (TEST_MAIN ${PROJECT_SOURCE_DIR}/test/lib_beast.cpp)

GroupSources (. "/")

add_library (
    lib-test STATIC
    ${CMAKE_CURRENT_LIST_DIR}/lib_test.cpp
)

set_property(TARGET lib-test PROPERTY FOLDER "static-libs")

add_subdirectory (beast)
add_subdirectory (bench)
add_subdirectory (doc)
add_subdirectory (example)