QMake: Automatically compiling all files in a directory
Compiling all files in directory:
The qmake -project directory will create a project file and includes all the .cpp and .h files in that directory. And to add a pre-compile step that calls qmake -project, to pass the files.
qmake -project -o MyFiles.pro && sed '1,/^# Input/d' MyFiles.pro > MyFiles.pri && rm MyFiles.pro