# # Copyright 2025 Staysail Systems, Inc. # Copyright 2018 Capitar IT Group BV # # 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)