2013-03-15 63 views

回答

0

那里是一个foo.pro你可以使用类似这样的项目根:

CONFIG += ordered 
TEMPLATE = subdirs 
SUBDIRS = common srcdir1 srcdir2 srcdir3 

从文档:

When using the subdirs template, this option specifies that the directories listed should be processed in the order in which they are given.

变量值,然后将被保留,还等什么你共同设置的应该在srcdir1中可用,等等。

即使这不起作用,您仍然可以将PRECOMPILED_HEADER = foo.h定义放入precompiled-header.pri项目包含文件,该文件包含在几个地方。

这有帮助吗?