aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/http/CMakeLists.txt
blob: 9f85631b3e84faaab29d7141401edd1112352f13 (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
#
# Copyright 2025 Staysail Systems, Inc. <info@staysail.tech>
# Copyright 2018 Capitar IT Group BV <info@capitar.com>
#
# 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.
#

option (NNG_ENABLE_HTTP "Enable HTTP API" ON)
if (NNG_ENABLE_HTTP)
    set(NNG_SUPP_HTTP ON)
    nng_defines(NNG_SUPP_HTTP)
    nng_sources(
        http_api.h
        http_client.c
        http_chunk.c
        http_conn.c
        http_msg.c
        http_public.c
        http_schemes.c
        http_server.c)
    nng_test(http_server_test)
else()
    nng_sources(http_stubs.c)
endif()
mark_as_advanced(NNG_ENABLE_HTTP)