[Qt-creator] QMake and dependencies
Kris Wong
wongk at seapine.com
Thu Jan 7 20:12:14 CET 2010
> Hi,
>
> this is likely a problem with qmake:
>
> I put all my sources in a subdirectory src. I don't want to use this
> "src" in all my include paths so added a INCLUDEPATH="src"
> directive to
> my .pro file.
>
> No it seems that all sources that include a file via that INCLUDEPATH
> directive do not depend on that headers. If I modify the header the
> source is not automatically recompiled. Is this the intended
> behaviouor
> of INCLUDEPATH?
>
> What's the best way to solve this problem? I would like to have all
> sources and headers in one .pro file.
DEPENDPATH += $${INCLUDEPATH}
-Kris Wong
More information about the Qt-creator-old
mailing list