]> git.rmz.io Git - dotfiles.git/blobdiff - vim/ultisnips/cmake.snippets
vim/fugitive: winfixheight FugitiveIndex window
[dotfiles.git] / vim / ultisnips / cmake.snippets
index 9609a05b6c26169fd98100f7b070552a486079e1..318bf56b01e4426fcaaa8e1c65a8422b7b1628ec 100644 (file)
@@ -18,6 +18,11 @@ target_link_libraries($2
 )
 endsnippet
 
+snippet pprint "Pretty print variables" b
+include(CMakePrintHelpers)
+cmake_print_variables(${1:var1})
+endsnippet
+
 snippet qt5 "Find Qt5 Modules" b
 # Qt5 Modules
 set(qt5_modules
@@ -92,3 +97,25 @@ set(CMAKE_DEBUG_TARGET_PROPERTIES
        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