Is there a pattern for setting up a Code::Blocks project to use CMake for the build? Ideally, I want Code::Blocks to invoke CMake as a pre-build step to generate a Makefile and then have Code::Blocks invoke that Makefile to build the project.
I figured out that I can point it to a custom Makefile by going to project properties, specifying one in the Project Settings tab, and selecting "This is a custom Makefile". Will that turn off Code::Block's own compiler/linker invocations? How can I set up the pre-build step? I found the Pre/Post-Build Steps tab under Build Options, but the controls are disabled.
Am I going about this the right way? Thanks!