conan_template/CMakeLists.txt
2024-11-08 17:46:43 +03:00

18 lines
428 B
CMake

cmake_minimum_required(VERSION 3.11)
project(App CXX)
set(CMAKE_CXX_STANDARD 20)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
find_package(Boost 1.84.0 REQUIRED)
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)
target_link_libraries(application PRIVATE Threads::Threads)