cmake_minimum_required (VERSION 2.8.11) project (ThreadPoolTests) set(CMAKE_CXX_STANDARD 11) find_package(Boost COMPONENTS thread) if (Boost_FOUND) include_directories(${Boost_INCLUDE_DIR}) else() message(FATAL_ERROR "No Boost found") endif() add_executable (ThreadPoolTests ThreadPoolTests.cpp) target_link_libraries(ThreadPoolTests ${Boost_LIBRARIES})