cmake_minimum_required(VERSION 2.6) project(Bar) set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) set(Boost_DEBUG ON) set(Boost_USE_MULTITHREADED ON) set(Boost_USE_STATIC_LIBS ON) set(Boost_COMPAT_STATIC_RUNTIME OFF) set(Boost_USE_STATIC_RUNTIME OFF) set(Boost_ADDITIONAL_VERSIONS 1.44 1.44.0) find_package(Boost REQUIRED system) message("Boost_SYSTEM_LIBRARY_RELEASE = ${Boost_SYSTEM_LIBRARY_RELEASE}") message("Boost_SYSTEM_LIBRARY_DEBUG = ${Boost_SYSTEM_LIBRARY_DEBUG}") include_directories(${Boost_INCLUDE_DIR}) add_executable(foo foo.cc) target_link_libraries(foo ${Boost_SYSTEM_LIBRARY})