I agree with wysota: use qmake to generate the solution and project files.
http://doc.trolltech.com/4.3/qmake-manual.html