Technical requirements
As with the previous chapters, all examples are tested with CMake 3.21 and run on either of the following compilers:
- GNU Compiler Collection (GCC) 9 or newer
- Clang 12 or newer
- Microsoft Visual C++ (MSVC) 19 or newer
For viewing profiling data, a third-party viewer for Google trace format is needed; arguably, the most widely used is Google Chrome.
Examples using ccache
are tested with Clang and GCC but not with MSVC. To obtain ccache
, use either the package manager of your operating system or obtain it from https://ccache.dev/.
All examples are available at https://github.com/PacktPublishing/CMake-Best-Practices---2nd-Edition/.