可以cmake和netbeans玩好吗? [英] can cmake and netbeans play nice?
问题描述
我正在开发一个大项目,有些人可能会说真棒。
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开始,正如任何其他配置
脚本一样:
- 创建一个新的C /
- 指定项目的目录(
CMakeLists.txt
驻留)。 - 在选择配置模式下,选择自动。
- Make a new "C/C++ Application from existing sources".
- Specify the directory of the project (where
CMakeLists.txt
resides). - 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屋!