You can do all of this using a 'subdirs' TEMPLATE in your .pro file -
dependencies can be applied by controlling the build order with CONFIG
+= ordered.

A search in this list for 'subdirs' would be worthwhile.  Also see the
following:

http://doc.trolltech.com/4.2/qmake-variable-reference.html
http://stackoverflow.com/questions/1167573/qmake-subdirs-template-executing-a-target
http://stackoverflow.com/questions/781494/how-do-a-specify-a-library-file-dependency-for-qmake-in-qt

I agree with you about sessions - they aren't useful because they are
user specific and not VCS friendly.  But the .pro format is actually
very powerful and hand-crafting these files isn't hard.

However, I would dearly love to see full support for the subdirs
TEMPLATE added to Qt Creator as it would go a long way to addressing
the 'solution' question.

2009/8/26 Danny Price <[email protected]>:
> If I understand correctly, the only way to do this with Creator is via the
> Sessions model - load your lib project and the client project than depends
> on into a single session and then add the dependencies in the Project mode.
> Creator *should* then build the lib if required.
>
> However I've come to realize that the whole 'sessions' thing is flawed, not
> least because it cannot be used with source control and depends on the
> .pro.user files which have caused me a lot of problems and setting
> corruptions.
>
> Creator needs to have a solution system like MSVC. I've had similar problems
> in XCode which is rediculously convoluted when it comes to setting up
> dependencies, especially for target-specific dependencies (you have you wrap
> the other projects with XCode projects and then import them as references
> which only works if you have the source code!).
>
>
> On Wed, Aug 26, 2009 at 11:44 AM, Vladimir <[email protected]> wrote:
>>
>> Hello everyone!
>>
>> I'm trying to use QtCreator for my project because it's fast and
>> promising. I have .pro file for main project and I have a few .pro files
>> for my libraries. I would like the ability to build main project and
>> linked libraries should be building automatically by QtCreator.
>> Is there such possibility? Currently I don't see any way to open
>> propetries of main project and <<link>> lib projects. So I have to
>> manually rebuild library projects.
>> Is there some workaround or something?
>> If not, please add possibility to link projects and automatically
>> rebuild them is sources changed.
>> My current IDE Eclipse can do this, and I think QtCreator also should
>> can. That would be nice for me and other developers also :)
>>
>> -- Vladimir
>> _______________________________________________
>> 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

Reply via email to