Create a Qt project composed by other project
-
wrote on 26 Oct 2010, 14:55 last edited by
Hi all,
for application that i'm developping I should create a staticlib, I'll use it after in my application, composed by some little Qt project.
My question is: How can I create a project that it's composed by other project?
Thanks. -
wrote on 26 Oct 2010, 15:06 last edited by
Maybe SUBDIRS project will help you?
-
wrote on 26 Oct 2010, 15:31 last edited by
But i need to have only one .a file like output.
SUBDIR can do it, if yes, how? -
wrote on 26 Oct 2010, 16:26 last edited by
Then I didn't understand your question clearly. As I understood you have library project (that generates .a after building) and another project that uses this library.
-
wrote on 27 Oct 2010, 09:44 last edited by
What I'd like to do is:
Have a Project (static lib) named "ABC", this project don't have file .h or cpp inside but have other 3 project: "A" "B" "C".
I hope to have done clear.
Thanks. -
wrote on 27 Oct 2010, 09:54 last edited by
So your static lib project collects all the object files of the three projects A, B and C and combines them to one static lib?
-
wrote on 27 Oct 2010, 13:01 last edited by
Yes, this because i can have also the need to have only one lib, for example "libA.a", even to have all "libABC.a". I'd like to have the possibility to compile or a different solution "A" "B" etc... or a single solution "ABC".
Thanks. -
wrote on 27 Oct 2010, 19:55 last edited by
You'll need different configuration switches in QMake then, like this:
!altogether:SUBDIRS=A B C
altogether:SUBDIRS=Aand in the altogether case have A.pro also compile and link the files from B and C
then run qmake with CONFIG+=altogether or CONFIG-=altogether
-
wrote on 30 Oct 2010, 00:23 last edited by
I'm not able to understand, could you please send me an example or post a link with it.
My email address is cervelli.leonardo@gmail.com
Thanks and sorry.
1/9