Skip to content

Instantly share code, notes, and snippets.

@yolier
Created August 31, 2016 18:09
Show Gist options
  • Select an option

  • Save yolier/493467fb8dbcfc02cac29cb7bc04ead0 to your computer and use it in GitHub Desktop.

Select an option

Save yolier/493467fb8dbcfc02cac29cb7bc04ead0 to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 3.2)
project(<<PROJECTNAME>>)
find_package(Boost 1.58.0 REQUIRED)
IF(Boost_Found)
include_directories(${Boost_INCLUDE_DIRS})
add_definitions("-DHAS_BOOST")
ENDIF()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -lboost_system")
set(SOURCE_FILES ...)
add_executable(<<PROJECTNAME>> ${SOURCE_FILES})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment