What is the purpose of the *.pro file?


Question

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?

1
3
8/22/2017 9:34:09 AM

Accepted Answer

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.

8
9/2/2009 3:55:26 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon