summaryrefslogtreecommitdiffhomepage
path: root/example/asio_example/CMakeLists.txt
blob: 64494b952c394a89b4273fa7b253099b1dec792b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

cmake_minimum_required(VERSION 3.15...3.31)

project(
  AsioExample
  VERSION 1.0
  LANGUAGES CXX)

find_package(Boost REQUIRED)

add_executable(AsioExample example.cpp)

set_property(TARGET AsioExample PROPERTY CXX_STANDARD 20)
target_include_directories(AsioExample PUBLIC ../../include/)

if (NOT DEFINED LINUX)
target_link_libraries(AsioExample PRIVATE Boost Core Asio)
endif ()