cmake_minimum_required(VERSION 3.15...4.0)

project(SimpleHttpServer VERSION 1.0
                         DESCRIPTION "A simple HTTP server written in C++"
                         LANGUAGES CXX)



add_library(
  httpserverlib
  STATIC
  src/server.hpp
  src/server.cpp
)
target_compile_features(httpserverlib PUBLIC cxx_std_23)

add_executable(
  httpserver
  app/main.cpp
)

target_link_libraries(httpserver PUBLIC httpserverlib)
