Skip to content

sarrow104/simple-cmake.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

生成简单cmake工程文件的vim插件


安装:

.vimrc下,添加如下行(假设使用vim包管理工具Vundle):

call vundle#begin()
...
Plugin 'sarrow104/simple-cmake.vim.git'
call vundle#end()

使用

:GenCMakeSimple

即会在当前工作路径(:h getcwd())下,生成两个文件CMakeLists.txt和Makefile;此时,使用:

:make
:make Debug

或者在shell中执行类似的语句,就会进行编译——如果没有遇到错误的话;

可执行文件,将以当前文件夹名为名字;至于中间文件,都在./Release或者./Debug文件夹下面;


默认会枚举当前路径下所有cpp文件为程序源码;若需要自定义工程,

:e CMakeLists.txt

即可;


祝使用愉快!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published