]> git.rmz.io Git - dotfiles.git/commitdiff
vim/ultisnips: snippet to print cmake debug info
authorSamir Benmendil <samir.benmendil@ultrahaptics.com>
Wed, 5 Jul 2017 10:25:48 +0000 (11:25 +0100)
committerSamir Benmendil <me@rmz.io>
Wed, 5 Jul 2017 10:28:17 +0000 (11:28 +0100)
vim/ultisnips/cmake.snippets

index 1a2db7afc00998dcac5b7607d5eb230194a53a20..b3e88610b53527f3054020e722e12e29e0f7ee87 100644 (file)
@@ -78,3 +78,15 @@ set_target_properties(${1:target} ${2:PROPERTIES}
        ${3:COMPILE_FLAGS} ${0:"-O3 -Wall -pedantic"}
 )
 endsnippet
+
+snippet debug_targets "Debug targets" b
+set(CMAKE_DEBUG_TARGET_PROPERTIES
+       INCLUDE_DIRECTORIES
+       COMPILE_DEFINITIONS
+       COMPILE_OPTIONS
+       COMPILE_FEATURES
+       AUTOUIC_OPTIONS
+       SOURCES
+       POSITION_INDEPENDENT_CODE
+)
+endsnippet