/
ihtiandr9
/
httpserver
Обзор
Документация
Войти
/
ihtiandr9
/
httpserver
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v0.1
cpp/CMakeLists.txt
22 строки
740 B
Sergey Ryabchenkov(freevm)
reserve folder to mono implementation
02 авг 2025, 16:46
02 авг 2025, 16:46
b540d5d
Код
Авторство
О чём код?
cmake_minimum_required(VERSION 3.5...3.11) project(httpserver) # Common options include_directories(third_party/cpp-httplib) add_definitions(-pthread -ggdb -O0 -static) set(LIBS pthread) if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux") set(LIBS ${LIBS} pthread -static) elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "FreeBSD") set(LIBS ${LIBS} pthread -static) else() set(LIBS ${LIBS} pthread ws2_32 -static) endif() message(NOTICE ${CMAKE_SYSTEM_NAME}) # http server target add_executable(httpserver src/server.cpp) target_link_libraries(httpserver ${LIBS}) # http client target add_executable(httpclient src/client.cpp) target_link_libraries(httpclient ${LIBS})