cmake_minimum_required(VERSION 2.6) set(PROJECT_NAME "test") set(SRCS test.cpp ) #Change for your source files message("Adding boost from $ENV{BOOST_ROOT}") include_directories($ENV{BOOST_ROOT}) add_executable(${PROJECT_NAME} ${SRCS})