FindBoost — CMake 3.0.2 Documentation. Find Boost include dirs and libraries Use this module by invoking find_package with the form: find_package(Boost [version] [EXACT] # Minimum or EXACT version e.g. 1.36.0 [REQUIRED] # Fail with error if Boost is not found [COMPONENTS <libs>...] # Boost libraries by their canonical name ) # e.g. "date_time" for "libboost_date_time" This module finds headers and requested component libraries OR a CMake package configuration file provided by a “Boost CMake” build. For the latter case skip to the “Boost CMake” section below. For the former case results are reported in variables: This module reads hints about search locations from variables: BOOST_ROOT - Preferred installation prefix (or BOOSTROOT) BOOST_INCLUDEDIR - Preferred include directory e.g.
And saves search results persistently in CMake cache entries: Users may set these hints or results as cache entries. Boost libraries come in many variants encoded in their file name. Other variables one may set to control this module are: Boost avec CMake | Improve the world. CMake Tutorial - Chapter 1: Getting Started - JohnLamp.netJohnLamp.net. In this chapter we start by installing CMake. Like most open source software the best way to do this depends on your platform and how you usually do things. Once we have CMake installed we create a simple project. Perhaps it’s a little fancier than “hello world” but not much. We finish up with the test support built into CMake. I won’t cover any particular aspect of CMake in great detail yet. That will be left for future chapters. However, after this chapter you will know enough to build simple programs with CMake and run simple tests with CTest.
Windows Download and Install Download the installer from the CMake website . This provides both the cmake command and the CMake GUI (cmake-gui) but not the curses interface (ccmake). Cygwin CMake can, of course, be installed as part of Cygwin. Download Cygwin’s setup.exe from their website . This provides the cmake command and the curses interface (ccmake) but not the CMake GUI. Mac OS X Download the disk image from the CMake website . Homebrew Linux ls.