Skip to content

Instantly share code, notes, and snippets.

@alibitek
Created April 16, 2013 17:52
Show Gist options
  • Save alibitek/5398011 to your computer and use it in GitHub Desktop.
Save alibitek/5398011 to your computer and use it in GitHub Desktop.
Boost CMake configuration.
# Boost
SET(BOOST_ROOT path/to/where/youve/built/boost/)
FIND_PACKAGE(Boost 1.53.0 COMPONENTS filesystem REQUIRED)
IF(Boost_FOUND)
INCLUDE_DIRECTORIES(SYSTEM ${Boost_INCLUDE_DIR})
LINK_DIRECTORIES(${Boost_LIBRARY_DIR})
MESSAGE("**Boost information**")
MESSAGE("Boost_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}")
MESSAGE("Boost_LIBRARY_DIRS: ${Boost_LIBRARY_DIRS}")
MESSAGE("Boost Libraries: ${Boost_LIBRARIES}")
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${Boost_LIBRARIES})
ENDIF()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment