2024-11-07 12:24:18 +01:00
|
|
|
cmake_minimum_required(VERSION 3.11)
|
|
|
|
|
2024-11-08 15:46:43 +01:00
|
|
|
project(App CXX)
|
2024-11-07 12:24:18 +01:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
|
|
|
|
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
|
|
|
|
conan_basic_setup()
|
|
|
|
|
2024-11-08 15:46:43 +01:00
|
|
|
find_package(Boost 1.84.0 REQUIRED)
|
2024-11-07 12:24:18 +01:00
|
|
|
if(Boost_FOUND)
|
|
|
|
include_directories(${Boost_INCLUDE_DIRS})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
|
2024-11-08 18:12:10 +01:00
|
|
|
add_executable(application src/main.cpp
|
|
|
|
src/helpers.h
|
|
|
|
src/helper.cpp
|
|
|
|
src/sdk.h
|
|
|
|
src/Session.h
|
2024-11-11 17:49:47 +01:00
|
|
|
src/Session.cpp
|
|
|
|
src/Listener.h
|
2024-11-11 18:08:59 +01:00
|
|
|
src/Listener.cpp
|
2024-11-22 15:53:39 +01:00
|
|
|
src/content_type.h
|
2024-11-21 20:04:07 +01:00
|
|
|
src/RequestHandlers/BasicRequestHandler.cpp
|
2024-11-11 18:08:59 +01:00
|
|
|
src/RequestHandlers/BasicRequestHandler.h)
|
2024-11-07 12:24:18 +01:00
|
|
|
target_link_libraries(application PRIVATE Threads::Threads)
|