conan_template/CMakeLists.txt

28 lines
904 B
CMake
Raw Permalink Normal View History

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)
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
src/Listener.cpp
src/content_type.h
src/RequestHandlers/BasicRequestHandler.cpp
src/RequestHandlers/BasicRequestHandler.h)
2024-11-07 12:24:18 +01:00
target_link_libraries(application PRIVATE Threads::Threads)