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

查看:359
本文介绍了可以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开始,正如任何其他配置脚本一样:


  1. 创建一个新的C /

  2. 指定项目的目录( CMakeLists.txt 驻留)。

  3. 在选择配置模式下,选择自动。

  1. Make a new "C/C++ Application from existing sources".
  2. Specify the directory of the project (where CMakeLists.txt resides).
  3. In the "Select configuration mode", select "Automatic".

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天全站免登陆