tags:

views:

50

answers:

2

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?

+5  A: 

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.

laalto
+1  A: 

Read the answer to your other question, where we already explained this.

http://stackoverflow.com/questions/1368534/qt-question-why-does-qt-use-its-own-make-tool-qmake

Thomi