Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the purpose of the *.pro file? [duplicate]

Tags:

c++

qt

qmake

I just started using Qt and noticed that in each example code folder there is a .pro file (and there is also a makefile created too... why?). What is the purpose of the .pro file?

like image 839
Trevor Boyd Smith Avatar asked Mar 01 '23 08:03

Trevor Boyd Smith


1 Answers

It's a multiplatform project file which qmake turns into platform-specific makefiles. The main reason for its existence is easier configuration and compilation of multiplatform projects. Compare e.g. to autotools-generated configure scripts and makefiles commonly seen in unixland.

like image 129
laalto Avatar answered Mar 07 '23 23:03

laalto