[Qt-interest] [qmake] source and header files in separate directories

Richard Stellingwerff remenic at gmail.com
Sun Sep 27 15:50:28 CEST 2009


2009/9/26 J-P Nurmi <jpnurmi at gmail.com>

> On Sat, Sep 26, 2009 at 3:26 PM, Richard Stellingwerff
> <remenic at gmail.com> wrote:
> > Hi,
> >
> > When starting on a project, we initially used Visual Studio to deal with
> > project settings and building. In this setup, our header files and source
> > files were places in separate directories. Now, we are moving to qmake as
> > our build system (in Linux and Mac anyway) but I have run into a problem.
> >
> > When editing one of the header files, all source files that include the
> > modifief header file do not get automatically rebuild. This only seems to
> > work when header and source files are in the same directory. Is there
> some
> > way to be able to keep our current directory structure, without losing
> the
> > 'dependency tracking' (I don't know the official name) functionality?
>
> Hi,
>
> List relevant directories in the DEPENDPATH variable:
> http://doc.qt.nokia.com/4.5/qmake-variable-reference.html#dependpath
>

Thanks J-P, DEPENDPATH did the trick :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090927/8f0fe425/attachment.html 


More information about the Qt-interest-old mailing list