# Pi-hole: A black hole for Internet advertisements
# (c) 2020 Pi-hole, LLC (https://pi-hole.net)
# Network-wide ad blocking via your own hardware.
#
# FTL Engine
# /src/webserver/CMakeList.txt
#
# This file is copyright under the latest version of the EUPL.
# Please see LICENSE file for your rights under this license.

set(sources
        http-common.c
        http-common.h
        json_macros.h
        lua_web.c
        lua_web.h
        webserver.c
        webserver.h
        x509.c
        x509.h
        )

add_library(webserver OBJECT ${sources})
target_compile_options(webserver PRIVATE ${EXTRAWARN})
target_include_directories(webserver PRIVATE ${PROJECT_SOURCE_DIR}/src)

add_subdirectory(civetweb)
add_subdirectory(cJSON)