]> git.rmz.io Git - dotfiles.git/blobdiff - vim/ultisnips/cmake.snippets
vim/fugitive: winfixheight FugitiveIndex window
[dotfiles.git] / vim / ultisnips / cmake.snippets
index 1983d600225c68525a2c90086f038b2fb1acd94e..318bf56b01e4426fcaaa8e1c65a8422b7b1628ec 100644 (file)
@@ -97,3 +97,25 @@ set(CMAKE_DEBUG_TARGET_PROPERTIES
        POSITION_INDEPENDENT_CODE
 )
 endsnippet
        POSITION_INDEPENDENT_CODE
 )
 endsnippet
+
+snippet FPP "FPP Copyright" b
+# Copyright © Focal Point Positioning Limited `!v strftime("%Y")`. All Rights Reserved.
+# This code is the copyright of Focal Point Positioning Limited and
+# cannot be used, copied or distributed without the express written
+# 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