[Qt-interest] problem using qmake to build libs and apps in a project (make target dependency issue)
Mandeep Sandhu
mandeepsandhu.chd at gmail.com
Fri Jun 4 11:15:21 CEST 2010
Hi All,
This might be a trivial question, but i'll still ask here anyway.
I'll illustrate my problem with a simple project. Say I have a proj,
with an app 'appA' which uses a lib libB (part of this proj, not any
ext lib).
I have my build settings in the .pro file such that all intermediate
object/moc files etc are generated in a top-level 'build' dir. eg:
appA's obj files would go under '$proj-root/build/appA/objs'. For the
libB library, I also have an install rule which copies the built
library under $proj-root/install/lib and the header files into
$proj-root/install/include.
Now the problem is that the build of appA needs that libB should be
built before (naturally so) and also that the 'install' target should
have been run (because appA's pro file refers to headers kept in
$proj-root/install/include).
How can this dependency (of having top run 'install' on the libB
project first before appA is built) be resolved using qmake?
Thanks,
-mandeep
More information about the Qt-interest-old
mailing list