[Qt-interest] qmake : How to create dependencies for libs?

Kustaa Nyholm Kustaa.Nyholm at planmeca.com
Wed May 26 16:05:15 CEST 2010


Hi,

I've got a project A that produces a dynamic lib (on Mac OS X to be exact).

This project depends an other project B which produces a static lib (.a)

This project B has it's own .pro file.

To make A link I need to add the B.a file to LIBS in A.pro.

I've also added project be directory to the SUBDIRS in A.pro.
(Strictly speaking B is not in the same file hierachy as A)


make clean on dir A compiles succesfully.

However when I change any of the source files of B
they are compiled and the library B.a  is recreated but
A is not re-linked.

I've looked up and down the web and searched the list
archieve and I've seen suggestions to use POST_TARGETDEPS
but I can't get this to work.

Any suggestion would be highly appreciated.

br Kusti





More information about the Qt-interest-old mailing list