just thought I'd recommend the tool "premake". it can generate codeblocks projects and projects for other IDEs all from a lua script.
premake is on sourceforge
Cool!!, I'll check it :D
You can find Premake here: http://premake.sourceforge.net (http://premake.sourceforge.net)
We use it for wxFormBuilder (http://wxformbuilder.org). It has matured and can most likely do anything the other tools can do. It is small, fast, and simple to use. I highly recommend it. I use it on more projects than wxFormBuilder, but that is one you can look at how we use it.
Have fun.