Unfortunately, this has to be done one example at a time because subdirectories do not inherit variables in QMake.