aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/http/CMakeLists.txt
blob: 9cfbd14ab504787c135285a8de2702226c33a741 (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
#
# Copyright 2017 Capitar IT Group BV <info@capitar.com>
# Copyright 2017 Staysail Systems, Inc. <info@staysail.tech>
#
# This software is supplied under the terms of the MIT License, a
# copy of which should be located in the distribution where this
# file was obtained (LICENSE.txt).  A copy of the license may also be
# found online at https://opensource.org/licenses/MIT.
#

if (NNG_SUPP_HTTP)
        set(HTTP_DEFINES -DNNG_SUPP_HTTP)
        set(HTTP_SOURCES
                supplemental/http/http.h
                supplemental/http/http_client.c
                supplemental/http/http_conn.c
                supplemental/http/http_msg.c
                supplemental/http/http_public.c
                supplemental/http/http_server.c)
else()
        set(HTTP_SOURCES
                supplemental/http/http.h
                supplemental/http/http_public.c)
endif()
set(NNG_DEFINES ${NNG_DEFINES} ${HTTP_DEFINES} PARENT_SCOPE)
set(NNG_SOURCES ${NNG_SOURCES} ${HTTP_SOURCES} PARENT_SCOPE)