Qt和QMake构建目录 [英] Qt and QMake build dir

查看:374
本文介绍了Qt和QMake构建目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在源代码树之外构建qt和qt应用程序.您知道如何从命令行通过configure和qmake设置.obj目录吗?

I would like to build qt and qt application out of the source tree. Do you know how to set from the command line the .obj directory both with configure and qmake?

推荐答案

如果我正确理解了问题,则应该设置

If I understand question correctly you should set OBJECTS_DIR variable in *.pro file for any directory you want. If you don't want to change *.pro file try

qmake"OBJECTS_DIR = some_dir" * .pro

qmake "OBJECTS_DIR=some_dir" *.pro

这篇关于Qt和QMake构建目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆