October 2013
Intermediate to advanced
368 pages
9h 20m
English
Once you’ve installed the appropriate software, you can build any of the example versions and subsequently execute tests. From within an example version directory, you’ll first use CMake to create a makefile.
| | mkdir build |
| | cd build |
| | cmake .. |
The legacy codebase (see Chapter 8, Legacy Challenges) uses libraries from Boost, not just headers. CMakeLists.txt uses the BOOST_ROOT environment variable you defined twice: first, explicitly, by include_directories to indicate where Boost headers can be found, and second, implicitly, when CMake executes find_package to locate Boost libraries.
When building the legacy codebase, you might receive an error indicating that Boost cannot be found. If so, you ...