Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions doc/cmake-project.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@ Change this parameter to provide build directory name.
Example:
>
let g:cmake_project_build_directory = "build-custom"
<
*g:cmake_project_generator*
g:cmake_project_build_directory~
Default: "Unix Makefiles"

Change this parameter to set different cmake generator

Example:
>
let g:cmake_project_generator = "MinGW Makefiles"
<
Default mapping:

Expand Down
18 changes: 18 additions & 0 deletions doc/tags
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
:CMakeBar cmake-project.txt /*:CMakeBar*
:CMakeBuild cmake-project.txt /*:CMakeBuild*
:CMakeClean cmake-project.txt /*:CMakeClean*
:CMakeCompile cmake-project.txt /*:CMakeCompile*
:CMakeOutput cmake-project.txt /*:CMakeOutput*
cmake-project cmake-project.txt /*cmake-project*
cmake-project-commands cmake-project.txt /*cmake-project-commands*
cmake-project-configuration cmake-project.txt /*cmake-project-configuration*
cmake-project-contents cmake-project.txt /*cmake-project-contents*
cmake-project-history cmake-project.txt /*cmake-project-history*
cmake-project-installation cmake-project.txt /*cmake-project-installation*
cmake-project-intro cmake-project.txt /*cmake-project-intro*
cmake-project-requirements cmake-project.txt /*cmake-project-requirements*
cmake-project-todo cmake-project.txt /*cmake-project-todo*
cmake-project-usage cmake-project.txt /*cmake-project-usage*
cmake-project.txt cmake-project.txt /*cmake-project.txt*
g:cmake_project_build_directory cmake-project.txt /*g:cmake_project_build_directory*
g:cmake_project_generator cmake-project.txt /*g:cmake_project_generator*
5 changes: 3 additions & 2 deletions plugin/cmake-project.vim
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ function! s:set_options()
let s:options = {
\ 'g:cmake_project_show_bar': 1,
\ 'g:loaded_cmake_project': 1,
\ 'g:cmake_project_build_directory': 'build'
\ 'g:cmake_project_build_directory': 'build',
\ 'g:cmake_project_generator': 'Unix Makefiles'
\ }

for aOption in keys(s:options)
Expand Down Expand Up @@ -187,7 +188,7 @@ function! s:cmake_project_build() abort
if !isdirectory(build_directory)
call mkdir(build_directory, "p")
endif
let command = "cmake -G\"Unix Makefiles\" -B" . build_directory . " -H" . s:cmake_project_source_directory
let command = "cmake -G\"" . g:cmake_project_generator . "\" -B" . build_directory . " -H" . s:cmake_project_source_directory
if s:cmake_project_tmux_running
call VimuxRunCommand(command)
else
Expand Down