cmake 和 netbeans 可以玩吗? [英] can cmake and netbeans play nice?

查看:43
本文介绍了cmake 和 netbeans 可以玩吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个大项目,有些人可能会说很棒.

I'm working on a big project, some might say awesome.

该项目正在使用 c++ 和 cmake 和 netbeans 开发.一切正常,除了每次我更新项目、添加或删除源文件时,netbeans 都会运行 cmake 并将一个新项目添加到项目"列表中.这有点烦人,因为我经常这样做.

The project is being developed in c++ with cmake and netbeans. Everything is working fine except from the fact that every time I do updates to the project, add or remove source files, netbeans runs cmake and adds a new project to 'projects' list. This is somewhat annoying since i tend to do this alot.

有没有一种聪明的方法来确保每次添加子目录时 netbeans 都不会创建新项目?

Is there a smart way to make sure netbeans does not create new projects every time a sub directory is added?

推荐答案

好消息!

从 NetBeans 6.8 开始,CMake 被优雅地处理,就像任何其他 configure 脚本一样:

  1. 从现有来源制作一个新的C/C++ 应用程序".
  2. 指定项目的目录(CMakeLists.txt 所在的目录).
  3. 在选择配置模式"中,选择自动".

NetBeans 将在必要时运行 cmake 来构建 Makefile
(或者当您点击重新配置项目"时).

And NetBeans will run cmake to build the Makefile when it's necessary
(or when you click "Reconfigure project").

有关详细信息,请参阅 NetBeans 论坛上的原始主题.

See the original thread on the NetBeans forums for more info.

这篇关于cmake 和 netbeans 可以玩吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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