Adam, Thank you for the response.
The problem I see with that approach is that whenever I add or remove a new header in one project I have to remember to modify PRE_TARGETDEP in the other project. I guess I could put the headers in a .pro.inc file and include that in both .pro files. But again, shouldn't there be a better way? Thanks, John On Dec 16, 2009, at 4:20 PM, Coda Highland wrote: > You can use PRE_TARGETDEPS in the subdirs' .pro files to watch for > individual files to be modified. > > /s/ Adam > > On Wed, Dec 16, 2009 at 7:21 PM, John Vilburn <[email protected]> wrote: >> I have a .pro file that looks like this: >> >> TEMPLATE = subdirs >> CONFIG += ordered >> SUBDIRS = Project1 \ >> Project2 \ >> Project3 >> >> Some of the .h files in Project1 are used in Project2 and Project3. When I >> change one of those header files and do a build, only the files in Project1 >> get rebuilt. Is there a way to have qmake or Qt Creator notice those >> dependencies and rebuild the appropriate files in Project 2 and 3? Including >> the .h files from Project1 in the list of headers of Project2 and 3 would >> work, I suppose. But there must be a better way. >> >> Thanks, >> John >> >> >> _______________________________________________ >> Qt-creator mailing list >> [email protected] >> http://lists.trolltech.com/mailman/listinfo/qt-creator >> > > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.trolltech.com/mailman/listinfo/qt-creator _______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
