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.| offlinemark
I’d love to simply use GNU Make for my C/C++ projects because it’s so simple to get started with. Unfortunately it’s lacking a few essential qualify of life features: Out of tree builds If you want your build to happen in an isolated build directory (as opposed to creating object files in your source tree), […]| offlinemark