TEMPLATE = subdirs CONFIG += ordered !isEmpty( UCMODEL ) { contains( UCMODEL, stm32f4 ){ SUBDIRS += stm32f4 } contains( UCMODEL, simulator ){ SUBDIRS += simulator } } SUBDIRS += common