Other options include using
premake to create the project; but this requires work of creating an premake.lua script for for the project.
cmake to create the project; but this requires work of creating an cmake list file.
cmake takes less work to create build file, but only creates an Code::Blocks makefile project.
premake takes more work to create build file; and, it can create regular Code::Blocks project.
premake
https://sourceforge.net/projects/premake/Note: More examples exist for version 3; so, first time users should use version 3.
cmake
http://www.cmake.org/Edit: I use premake, but have not used cmake.
Tim S