root@ubuntu:~/boost-test/asio/udp-recv# cat CMakeLists.txt
cmake_minimum_required(VERSION 2.8.3)
project(test)
find_package(Boost REQUIRED COMPONENTS system thread)
include_directories(${Boost_INCLUDE_DIRS})
add_executable(test main.cpp)
target_link_libraries(test ${Boost_LIBRARIES})
网友评论