[Interest] qmake: questions regarding huge projects
bm_witness at yahoo.com
Fri Apr 19 16:01:53 CEST 2013
QMake and CMake both generate what your final build environment need, whether it is Makefiles for GNUmake, nmake, or VS projects.
So you can have one project definition set that generates for all build environments. I highly recommend it.
I'd further advise that you probably want to use CMake instead of QMake - especially if you know you have implementation files by the same name in different places that could potentially be linked to the same executable either directly or through a static library (e.g. *.a on Linux). This is probably the only short-coming of qmake I've actually come across. CMake doesn't have that issue.
For example, I have a project now where I am refactoring some code - the original class's filename was imRunScreen.cpp; and the new class's filename is imRunScreen2.cpp; even if I put it in a sub-directory I still cannot use the same file name.
Now, may be this got changed for Qt5; I can't say as I haven't tried to do that kind of thing with Qt5's QMake yet. Regardless you'd probably be better off going the CMake route any way.
> From: Rainer Wiesenfarth <Rainer_Wiesenfarth at trimble.com>
>Cc: interest at qt-project.org
>Sent: Friday, April 19, 2013 8:33 AM
>Subject: Re: [Interest] qmake: questions regarding huge projects
>Am 19.04.2013 13:36, schrieb Bo Thorsen:
>> On the bright side: Once you have a good cmake build in place, you will
>> have the visual studio build done with the same system as Linux. Having
>> two different build systems is *not* a good idea.
>I know, but we will definitely have two build systems - unless there is
>a cross-platform MSBuild / devenv ... :-)
>Our almost exclusive development environment is and will remain Visual
>Studio, so any initial changes to projects or "solutions" are done
>inside VS. Building the software on Linux is done far less often, so
>re-adjusting the build files is a tolerated approach.
>Best Regards / Mit freundlichen Grüßen
>Software Engineer | Trimble Imaging Division
>Rotebühlstraße 81 | 70178 Stuttgart | Germany
>Office +49 711 22881 0 | Fax +49 711 22881 11
>http://www.trimble.com/imaging/ | http://www.inpho.de/
>Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim
>Eingetragen beim Amtsgericht Darmstadt unter HRB 83893,
>Geschäftsführer: Dr. Frank Heimberg, Hans-Jürgen Gebauer
>Interest mailing list
>Interest at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest