Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: tomay3000 on June 28, 2018, 11:17:30 am

Title: How to create a configure script?
Post by: tomay3000 on June 28, 2018, 11:17:30 am
Hello,
I have created a wxWidgets projct using C::B, I now need a configure or any easy build system script for it to make it possible to build without the need of the C::B IDE.

What is the best and easy way to do it?

Thank you.
Title: Re: How to create a configure script?
Post by: oBFusCATed on June 28, 2018, 11:45:33 am
Learning cmake is easier than learning autotools.
And it is starting to becoming the winning configure system in the c/c++ world.
The benefit of cmake is that it has a codeblocks project file generators and can create a project for you.
Then you won't have to maintain two build systems.
The negative is that it is an old system with some strange rules and terrible scripting language.
Title: Re: How to create a configure script?
Post by: tomay3000 on June 28, 2018, 02:24:15 pm
Thank you, I'll give it a try.
How to do it from C::B, is there a plug-in ?

Thank you.
Title: Re: How to create a configure script?
Post by: oBFusCATed on June 28, 2018, 02:33:25 pm
Nope. You have to write the cmakelist.txt files yourself manually. Same for autotools.
I'm not really sure we could provide an ide support for adding files and setting flags.
The configurations are too generic and individual, so they require manual editing.