You can add the following lines to your *.pro file:
DESTDIR=bin #Target file directory
OBJECTS_DIR=generated_files #Intermediate object files directory
MOC_DIR=generated_files #Intermediate moc files directory
A list of variables is available at the following locations: