如何在Qt子目录项目中设置构建顺序 [英] How to set build order in Qt subdir project
本文介绍了如何在Qt子目录项目中设置构建顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含5-6个库和一个可执行文件的项目。可执行文件取决于库,某些库取决于其他库。如何指定构建顺序,以便在需要依赖项之前先构建依赖项?
I have a project with 5-6 libraries and one executable. The executable depends on the libraries, and some libraries depend on other libraries. How can I specify a build order so the dependencies are built before they are needed?
推荐答案
好。我找到了解决方案,只需将命令添加到CONFIG并以正确的顺序背诵子目录
Ok. I found the solution.Just add ordered to CONFIG and recite subdirs in correct order
CONFIG += ordered
SUBDIRS += Utility GraphicModule PackingLib Core GameProto
对我来说,这项工作很好
For me this work fine
这篇关于如何在Qt子目录项目中设置构建顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文