cmake_minimum_required(VERSION 2.6) project(TEST) ## Target set(TEST_SRCS main.cpp AsyncSerial.cpp BufferedAsyncSerial.cpp) add_executable(reciver ${TEST_SRCS}) ## Link libraries set(BOOST_LIBS thread date_time system) find_package(Boost COMPONENTS ${BOOST_LIBS} REQUIRED) target_link_libraries(reciver ${Boost_LIBRARIES}) find_package(Threads REQUIRED) target_link_libraries(reciver ${CMAKE_THREAD_LIBS_INIT})