To run custom build stages in CMake, you’ll often want what I call a “custom command/target pair”: This is an example from my CMake-rewrite of the JOS OS build system. It generates a filesystem image, using a custom host tool (fsformat). The fs image includes a number of files generated by the build process. If […] The post How to do custom commands/targets in CMake appeared first on offlinemark.