指定依赖关系
如果在一个会话中加载了多个项目,可以定义它们的构建顺序。例如,如果项目 A 依赖于项目 B,则必须先构建项目 B。
注意: 构建顺序是作为会话而不是项目的属性存储的。您必须打开会话才能使这些设置生效。
要定义会话中项目的构建顺序,请执行下列操作
- 转至Projects >Project Settings >Dependencies 。
- 选择必须在当前项目构建之前构建的项目。
- 选择Synchronize configuration 可使用相同的套件以及相同的构建和部署配置来构建和部署会话中加载的所有从属项 目。
- 选择Deploy dependencies 可部署已构建的从属项目。
Qt Creator 根据您为会话中加载的项目指定的依赖关系计算构建顺序。
注意: 不能使用此视图为项目指定子项目。
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.