cmake_minimum_required(VERSION 3.15...4.0) project(SimpleHttpServer VERSION 1.0 DESCRIPTION "A simple HTTP server written in C++" LANGUAGES C) add_library( httpserverlib STATIC src/httpserver.h src/httpserver.c src/utils/hashmap.c src/utils/hashmap.h src/utils/string_builder.c src/utils/string_builder.h ) add_executable( httpserver app/main.c app/main.h ) target_link_libraries(httpserver PUBLIC httpserverlib)