Hi all,
We have a build system that is entirely Cmake based. I'm trying to figure out a way of integrating that with the c::b project wizard so someone can create a project in c::b that uses the existing build system. I was originally intending to create the entire project natively in the wizard (my prototypes work fine so I have some experience of writing the wizard code), but its been requested to use the underlying cmake system.
So, CMake has an option to create C::B project files. So what I was considering:
Run Project Wizard.
Create a build folder in the project
Wizard then creates a CMakeList.txt for the new project
Runs CMake -G"CodeBlocks - Unix Makefiles" .. which create a .cbp file from our existing Cmake structure (we have a tree of code outside the C::B project) - this .cbp will end up in the build folder.
Add any extra information to the project (e.g. debugger, compiler etc)
My current reading of the situation makes we wonder whether this is possible- the wizard create its own project, it cannot load one that has just been created by an external script. Anyone have any hints and tips? I'm happy to make changes to base C::B code if necessary to make this all work. Or is there a better may to integrate our CMake and C::B?
Thanks
Jimbo