Chapter 12: Cross-Platform Compiling and Custom Toolchains
One of the powerful features of CMake is its support for the cross-platform building of software. Simply said, this means that with CMake, a project from any platform can be built for any other platform, as long as the necessary tools are available on the system running CMake. When building software, we typically talk about compilers and linkers, and they are of course essential tools for building software, but on a closer look, there are often some other tools, libraries, and files involved when building software. Collectively, these are commonly known as toolchains in CMake.
So far in this book, all the examples were built for the same system CMake was running on. In these cases, ...
Get CMake Best Practices now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.