Chapter 8: Executing Custom Tasks with CMake
Building and shipping software can be a complex task and no tool can ever do all the different tasks that are needed to do so. At some point, you may want to execute a task that is not covered by the compiler or CMake's functionality. Common tasks include archiving build artifacts, creating hashes to verify downloads, or generating or customizing input files for the build. There are also lots of other specialized tasks that depend on the environment a certain software is built inside.
In this chapter, we will learn how to include such custom tasks in a CMake project and how to create custom build targets and custom commands. We will go over how to create and manage dependencies between targets and ...
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.