[Qt-interest] Qt open source and VS 2008... how to make it work?
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Fri Feb 19 15:10:06 CET 2010
Ender EREL wrote on Friday, February 19, 2010 2:55 PM:
> ...
> Create a batch file that takes some parameters like project include
> directories, configuration name vs. and set it as a pre-build event
> to the project. This batch file iterates over .h and .ui files in the
> project dir & subdirs (except ./GeneratedFiles), searches the .h
> files for Q_OBJECT macro and runs moc on them if finds it.
Interesting idea - but this batch file should also handle *.ui files and resource files (Qt resource compiler). And off course the problem remains of how to dynamically add these generated files to the Visual Studio project (moc_*.cpp etc.). Maybe also a "custom build step" which compiles everything it finds in "GeneratedFiles" (and separating debug and release files) and links it to the rest of the project? Hmmm...
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list