I created a little plugin that helps me to build Qt projects as clean C++ projects in CodeBlocks IDE. Natively CodeBlocks doesn't support Qt projects - user must generate makefile with qmake manually and list of files and settings can't be automaticaly extracted from IDE.
This became possible because C::B:
- allows read all available data of project, it's targets, it's compiler and etc
- allows save data to xml-like C::B project file
- allows using custom makefile
- allows change "make" command line
- allows add settings pane to environment settings dialog
- allows add settings pane to project settings dialog
- allows create scripted wizards to start project with appropriate configuration
Now I only want to discuss my ideas with community about how to make it better and share sources using this forum
In future if some people support me this plugin can become popular
Plugin's sources for today are attached to this message (qthelper.zip).
It better to use it with scripted wizard, that also attached (scripted_wizard.zip).
For newer versions see other messages of the topic.
To add these project types:
- copy these folders to directory <C::B folser>/share/CodeBlocks/templates/wizard/
- add 2 lines to function RegisterWizards() in file <C::B folser>/share/CodeBlocks/templates/wizard/config.script
- RegisterWizard(wizProject, _T("qt4"), _T("QT4 static project"), _T("GUI"));
- RegisterWizard(wizProject, _T("qt4dll"), _T("QT4 dll project"), _T("GUI"));
This plugin works great when you don't need specific features of QT project file, because it extracts the following data from C::B project file:
- headers
- paths to them - include paths
- sources
- libs
- paths to them
- compiler options - flags
- linker options - flags
- output directory
- object files directory
- output file name
- and etc
It works like QtWorkbench, but not at all.
It saves additional data (some config that can't be extracted from C::B project file) to C::B project file for further use.
And qmake's pro-file is only intermediate file as well as moc's, uic's and rcc's files.
Qt's intermediate files are stored in objects directory (in subfolders of the same name)
Now project is moved to http://code.google.com/p/qthelper/, i.e. all latest sources and binaries can be found there.
[attachment deleted by admin]