summaryrefslogtreecommitdiffhomepage
path: root/example/asio_example_2/CMakeLists.txt
blob: a26fbfc0b68727373c3c24ba124d9ef8fbd0dc4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# (C) 2026 Amlal El Mahrouss

cmake_minimum_required(VERSION 3.15...3.31)

project(
  AsioExample2
  VERSION 1.0
  LANGUAGES CXX)

find_package(Boost REQUIRED)

add_executable(AsioExample2 example.cpp)

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

if (NOT DEFINED LINUX)
target_link_libraries(AsioExample2 PRIVATE Boost Core Asio Process)
else()
target_link_libraries(AsioExample2 PRIVATE boost_process)
endif ()