Technical requirements
You can find the code files that are present in this chapter on GitHub at https://github.com/PacktPublishing/Modern-CMake-for-Cpp-2E/tree/main/examples/ch14.
To build the examples provided in this book, always use the recommended commands:
cmake -B <build tree> -S <source tree>
cmake --build <build tree>
To install examples, use the following command:
cmake --install <build tree>
Be sure to replace the <build tree>
and <source tree>
placeholders with appropriate paths. As a reminder: build tree is the path to the target/output directory and source tree is the path at which your source code is located.