TEMPLATE = subdirs CONFIG += ordered !isEmpty( UCMODEL ) { contains( UCMODEL, stm32f4 ){ SUBDIRS += \ helloWorld \ DAC \ PWM } contains( UCMODEL, simulator ){ SUBDIRS += \ helloWorld } }