use ever build-in http server

This commit is contained in:
Torsten Schulz
2024-01-26 14:50:50 +01:00
parent 9d0edae785
commit 0789d41371

View File

@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.5)
project(singlechat.wt LANGUAGES CXX)
project(SingleChat LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -14,6 +14,13 @@ add_executable(${PROJECT_NAME}
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20)
target_link_libraries(${PROJECT_NAME}
wt
wthttp
curl
xml2
)
find_package(Boost COMPONENTS system filesystem REQUIRED)
if(UNIX)
# Ubuntu-spezifische Include-Verzeichnisse
@@ -22,21 +29,9 @@ if(UNIX)
if(XML2_FOUND)
target_include_directories(${PROJECT_NAME} PRIVATE /usr/include/GraphicsMagick ${XML2_INCLUDE_DIRS})
endif()
target_link_libraries(${PROJECT_NAME}
wt
wtfcgi
curl
xml2
)
elseif(EXISTS "/etc/os-release" AND ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux"))
# Tumbleweed-spezifische Include-Verzeichnisse
target_include_directories(${PROJECT_NAME} PRIVATE /usr/include/GraphicsMagick)
target_link_libraries(${PROJECT_NAME}
wt
wthttp
curl
xml2
)
endif()
if(Boost_FOUND)