cmake_minimum_required(VERSION 3.10)
project(MyService)

set(CMAKE_CXX_STANDARD 11)

find_package(Boost REQUIRED COMPONENTS system thread)
find_package(Threads REQUIRED)

include_directories(${Boost_INCLUDE_DIRS})

# 这里添加 service.cpp
add_executable(MyService main.cpp service.cpp)

target_link_libraries(MyService ${Boost_LIBRARIES} Threads::Threads)
