as far as I know CMake is a so called "MakeMake" tool. Itself doesn't guide the build process but only provides a means to describe how to build a certain software independent from
the target OS and the target build system. So you have then the choice to use the "make" / build control tools that you have on your build platform.
For instance you could tell CMake to create GNU Makefiles to build the software. You only need CMake to create the Makefiles. The build of the software will be guided by the GNU Makefiles then.
So you could for instance configure a Code::Blocks project to use these external Makefiles.
But even better you could advise CMake to create Code::Blocks project files (*.cbp) (see http://www.cmake.org/Wiki/CMake_Generator_Specific_Information). How good that works?
I don't know. But as you can see building a plugin as you proposed would counterfeit the idea of CMake.
My 2 cents here,
pirx67
Different things to different people, I guess. My point is that I want to start with Code::Blocks because it is natural to me. You forget the reasons I gave about the development process.
Apparently, CMake was created because someone had the idea that GNU make files were too inconvenient to create manually. The fact that GNU makefiles are used in the build process is a non-issue as long as you don't have to edit them manually. I am saying the same thing about CMake (recognising that others may see it differently). If I had the choice, I would prefer not to have to learn it, because I already know how to describe my software dependencies in another rather general system: Code::Blocks. I just want to translate that description so I can more easily add to the library that happens to use CMake.
As mentioned above, I already heard about translating from CMake to Code::Blocks, but such translation is of no interest to me, for the reasons I gave. For sure the plugin I proposed would not work against the idea of CMake, absolutely not. Those who want to use CMake can use CMake. The point is more that those who want to use Code::Blocks have to use CMake in situations like this. It isn't ideal even if it isn't the end of the world. The ideal would be to give people more choice, and translating .cbp to CMake would make perfect sense and hurt nobody if it existed.
But as it doesn't exist, this is all theory. I'll have to figure out how to handle it manually.