我正在做一个大项目,有些人可能会说很棒.
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
脚本一样:
CMakeLists.txt
所在的目录).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 可以玩吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!