
44. The Build Syndrome 645
IF( RT_[VALUE ]) ADD_DEFINITION(-DRT_[VALUE ])
Furthermore, we have to locate third-party libraries such as GLUT, Bullet, Boost,
etc., that are needed for this particular configuration state. These paths are devel-
oper dependent, so they cannot be known in advance. CMake provides a find
package() mechanism to find the packages after a root path is set. It also searches
in platform-specific standard locations in case the libraries are installed systemwide.
If the package finding is omitted in this phase, the individual CMake configuration
files of RenderTools will invoke find
package() calls themselves for the needed
libraries.