在导入一个QtCreator项目的CMake [英] Importing a CMake project in QtCreator

查看:1296
本文介绍了在导入一个QtCreator项目的CMake的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图导入QtCreator,我会希望为code编辑器使用我的CMake的项目,但对于completition Qt类是通过按Ctrl + R做构建的可能性

I'm trying to import my Cmake project in QtCreator, which I'd want to use as code editor, but with completition for Qt classes an the possibility to do the build via Ctrl+R

在导入CMake的项目,运行CMakeWizard的时候,当我尝试选择RunCmake的QtCreator IDE挂起。如果我取消空窗口弹出,也不产生项目

When importing the Cmake project, the QtCreator ide hangs when running CMakeWizard when I try to select RunCmake. If I cancel an empty windows pops up and the project is not generated.

是否有可能在QtCreator导入现有的CMake项目?

Is it possible to import an existing cmake project in QtCreator?

Ubuntu的10.10 x86_64的,QtCreator 2.6

Ubuntu 10.10 x86_64, QtCreator 2.6

推荐答案

通常你只是做打开项目,然后选择的CMakeLists.txt作为项目文件。然后QtCreator会问你要运行一次的CMake(生成一个$ C $个cblocks构建文件,然后由QtCreator PTED间$ P $)。之后,你有你的CMake项目的原生支持。

Normally you just do "Open Project" and then select the CMakeLists.txt as the project file. QtCreator will then ask you to run CMake once (to generate a CodeBlocks build file, which is then interpreted by QtCreator). After that you have native support for your CMake project.

它甚至有相当复杂的CMake的脚本作品。
如果您发现挂起等等,你应该提交的QtCreator项目的bug报告。

It even works with rather complicated CMake scripts. If you observe hangs etc., you should probably file a bug report with the QtCreator project.

这篇关于在导入一个QtCreator项目的CMake的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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