On 06/14/2010 05:10 PM, ext Grego wrote: > Hi, > > I have a library project using shadow builds, targeting desktop, maemo, > symbian, so 3 different shadow build directories. > > Then I have my application build for the same targets, which I would > like to link with the corresponding shadow build of library. > > What is the canonical way to setup this in qt-creator? Looking for > "shadow build" had just a section for Windows CE, but maybe I should > look elsewhere in documentation?
I believe the easiest way is to: 1. Make your library and application part of the same .pro file hierarchy (so it's one .pro file to open in Qt Creator, and one shadow-build directory is created for each platform). The top-level .pro file would use the 'subdirs' template. 2. Next to your library.pro file, write a library.pri file that you include in your application.pro file. This file should add the necessary paths to INCLUDEPATH for using the library as well as add the library to the LIBS variable. In the latter, use $$OUT_PWD as a means to point to the root of the shadow build directory. I'm not sure if this solution is documented anywhere, but then I'm also not sure if it's the best one. Regards, Bjørn -- Thorbjørn Lindeijer Software Engineer Nokia, Qt Development Frameworks _______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
