是否可以使用Qt Creator没有qmake? [英] Is it possible to use Qt Creator without qmake?

查看:1312
本文介绍了是否可以使用Qt Creator没有qmake?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听说有可能使用Qt Creator构建非Qt应用程序(如简单的C ++ HelloWorld)。我下载并安装了Qt Creator,并试图用它编译简单的代码。但是我没有成功:Creator需要qmake来创建makefile。

I've heard that it is possible to build non-Qt applications (like simple C++ HelloWorld) with Qt Creator. I downloaded and installed Qt Creator, and tried to compile simple code with it. But I didn't succeed: Creator needs qmake to create makefile.

虽然我下载的包包含MinGW,但它里面没有qmake。

Although the package I downloaded includes MinGW, there is no qmake inside of it.

我仍然想像IDE一样使用它来创建简单的C ++源代码并用MinGW编译它们。是否可以使用Qt Creator而不安装整个平台?

I still want to use it just like an IDE to create simple C++ sources and compile them with MinGW. Is it possible to use Qt Creator without installing whole platform?

推荐答案

Qt Creator支持 CMake 项目,您只需选择打开文件或项目,然后选择项目的根CMakeList.txt即可。

Qt Creator support CMake projects, you just need to choose Open a file or project and select the root CMakeList.txt of your project.

如果要定义自己的构建工作流程,可以删除默认构建步骤并创建自己的自定义构建步骤( Qt Creator构建步骤)。

If you want to define your own build workflow, you can remove the default build step and create your own custom build steps (Qt Creator Build Steps).

这篇关于是否可以使用Qt Creator没有qmake?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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