X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/f1090d69e643494d4223483d51e42cfda518097c..c089750bf7a4524584f74246b52de9485f63f95b:/vim/ultisnips/cmake.snippets?ds=sidebyside diff --git a/vim/ultisnips/cmake.snippets b/vim/ultisnips/cmake.snippets index 44fe3e0..318bf56 100644 --- a/vim/ultisnips/cmake.snippets +++ b/vim/ultisnips/cmake.snippets @@ -105,3 +105,17 @@ snippet FPP "FPP Copyright" b # permission of Focal Point Positioning Limited. ${0} endsnippet + +snippet FetchContent_url "FetchContent" b +FetchContent_Declare(${1:name} + URL ${2:https://example.com/project.tar.gz} +) +FetchContent_MakeAvailable(${1/\w+/\L$0\E/}) +endsnippet + +snippet FetchContent_git "FetchContent" b +FetchContent_Declare(${1:name} + GIT_REPOSITORY ${2:https://github.com/${3:user/repo}} +) +FetchContent_MakeAvailable(${1/\w+/\L$0\E/}) +endsnippet