Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include .pro file in another .pro file

Tags:

c++

qt-creator

I'm trying to build some projects with QtCreator.

And there's a lot of code in common between the two .pro files.

Is there any mean to make the two .pro files call another unique .pro file that contains the common informations ?

like image 640
Xaltar Avatar asked Oct 21 '22 13:10

Xaltar


1 Answers

Yes, see docs. You can just write:

include(otherproject.pro)

And not duplicating code is always a good idea.

like image 152
graphite Avatar answered Oct 26 '22 23:10

graphite