【发布时间】:2015-04-09 10:47:50
【问题描述】:
我有一个带有子目录模板的顶级 .pro 文件
TEMPLATE = subdirs
SUBDIRS += \
common/tests
common/tests 包含 .pro 文件,但 qmake 找不到:
Could not find .pro file for sub dir "common/tests" in "/home/o.antonyan/Documents/mt3/main/src/common/tests"
但它就在那里:
ls /home/o.antonyan/Documents/mt3/main/src/common/tests
api interfaces Makefile tests_common.pro.user ui
dataformat.cpp local_enviroment.cpp tests_common.pro types
如果我将此 pro 文件移动到父目录并修改顶级 qmake SUBDIRS += common 那么它可以工作。只有当子目录包含超过 1 级深度的相对路径时才会出现问题。
QMake 3.0 版在 GNU/Linux x86 上使用 Qt 5.4.1 版,Qt 从源代码编译
【问题讨论】: