cmake_minimum_required(VERSION 3.8..3.22) project(webcxx LANGUAGES CXX) add_library(${PROJECT_NAME} STATIC ${CMAKE_CURRENT_LIST_DIR}/src/App.cpp ${CMAKE_CURRENT_LIST_DIR}/src/Socket.cpp ${CMAKE_CURRENT_LIST_DIR}/src/HTMLTemplate.cpp ${CMAKE_CURRENT_LIST_DIR}/src/MIMETypes.cpp ${CMAKE_CURRENT_LIST_DIR}/src/Response.cpp ${CMAKE_CURRENT_LIST_DIR}/src/Request.cpp ${CMAKE_CURRENT_LIST_DIR}/src/HTTPStatus.cpp ${CMAKE_CURRENT_LIST_DIR}/src/Map.cpp) target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include/webcxx ${CMAKE_CURRENT_LIST_DIR}/src) set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 17) set(webcxx_include ${CMAKE_CURRENT_LIST_DIR}/include) set(webcxx_libs ${PROJECT_NAME})