Rewrite in C. Simple TCP listener.

This commit is contained in:
2025-09-13 00:57:47 +03:00
parent 418d33a6de
commit 39db2830e2
9 changed files with 149 additions and 77 deletions

View File

@@ -2,21 +2,19 @@ cmake_minimum_required(VERSION 3.15...4.0)
project(SimpleHttpServer VERSION 1.0
DESCRIPTION "A simple HTTP server written in C++"
LANGUAGES CXX)
LANGUAGES C)
add_library(
httpserverlib
STATIC
src/server.hpp
src/server.cpp
httpserverlib
STATIC
src/httpserver.h
src/httpserver.c
)
target_compile_features(httpserverlib PUBLIC cxx_std_23)
add_executable(
httpserver
app/main.cpp
httpserver
app/main.c
app/main.h
)
target_link_libraries(httpserver PUBLIC httpserverlib)