Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: marmistrz on April 18, 2016, 01:52:30 pm
-
I've not decided which IDE to use for my future C project, I'll choose between QtCreator and C::B.
The thing that makes me wonder is the build system support. I think I'll use either cmake or plain makefiles, rather cmake. But, to my surpise its support is really poor. All I seem to be able to do is to create a .cbp file. It's all fine for development but later, when I decide to release it, I'll have to build it via bash commands. When cmake && make would do the trick, .cbp is unbuildable without the whole GUI.
I tried generating a .cbp via the cmake -G option, but then I get:
You must select a host application to "run" a commands-only target...
Qt Creator doesn't have any problems to use cmake for building and running. Why is the support for build systems so poor in C::B?
-
cmake support for generation CB native projects is slightly poor.
And, CB Support for non-native custom makefile projects could use some slight improvements to support makefiles generated by cmake.
While I believe Qt Creator using makefiles as their native build system.
Tim S.
-
The cmake generator for codeblocks is developed and maintained by the cmake developers.
So if you have complaints about it you have to talk to them.
Using plain makefiles with cb is not really a problem. You have to make a custom makefile project and then everything should work just fine.
-
And is it possible for the console_runner to be automatically used for my project? When I submit the executable name, it launches, but the terminal window instantly disappears because console_runner is not used
-
Have you tried to change the type of the target to console and tell it to pause at the end?
-
Thanks, this did the trick!