.pro files and subdirs
-
Hi
I want a project structure as follows -
@MainProject
SubProject1
SubProject2
SubProject3
@
Where each of the sub projects contains a .pro file that generates an executable and the MainProject also has .pro file that produces an executable.I am aware of the subdirs templates but his does not allow the MainProject to produce an exe.
Is there a way of achieving this?
-
Hi, Grahaml!
It may work like this:
in mainproject.pro
<code>
TEMPLATE = subdirs
CONFIG += ordered
SUBDIRS += SubProject1 SubProject2 SubProject3 MainProject
</code>in MainProject.pro you say TEMPLATE = app
and he will be executable (http://qt-project.org/doc/qt-4.8/qmake-project-files.html) -
Thanks
I'll give it a go