Sha256: 2deafbfbe23788500f7889dc4fb1c194a5d754f7ded526850bdc13088bf64b8f

Contents?: true

Size: 832 Bytes

Versions: 11

Compression:

Stored size: 832 Bytes

Contents

snippet cmake
	CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
	PROJECT(${1:ProjectName})

	FIND_PACKAGE(${2:LIBRARY})

	INCLUDE_DIRECTORIES(
		${$2_INCLUDE_DIR}
	)

	ADD_SUBDIRECTORY(${3:src})

	ADD_EXECUTABLE($1)

	TARGET_LINK_LIBRARIES($1
		${$2_LIBRARIES}
	)

snippet include
	INCLUDE_DIRECTORIES(
		${${1:INCLUDE_DIR}}
	)

snippet find
	FIND_PACKAGE(${1:LIBRARY})

snippet glob
	FILE(GLOB ${1:SRCS} *.${2:cpp})

snippet subdir
	ADD_SUBDIRECTORY(${1:src})

snippet lib
	ADD_LIBRARY(${1:lib} ${2:STATIC}
		${${3:SRCS}}
	)

snippet link
	TARGET_LINK_LIBRARIES(${1:bin}
		${2:somelib}
	)
	
snippet bin
	ADD_EXECUTABLE(${1:bin})

snippet set
	SET(${1:var} ${2:val})

snippet dep
	ADD_DEPENDENCIES(${1:target}
		${2:dep}
	)

snippet props
	SET_TARGET_PROPERTIES(${1:target} 
		${2:PROPERTIES} ${3:COMPILE_FLAGS} 
		${4:"-O3 -Wall -pedantic"}
	)

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
gollum-4.1.4 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cmake.snippets
gollum-4.1.3 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cmake.snippets
inc_gollum-4.1.2d lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cmake.snippets
inc_gollum-4.1.2c lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cmake.snippets
gollum-4.1.2 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cmake.snippets
gollum-4.1.1 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cmake.snippets
gollum-4.1.0 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cmake.snippets
gollum-4.0.1 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cmake.snippets
pollypost-0.0.2 vendor/assets/ace-1.1.8/snippets/cmake.snippets
gollum-4.0.0 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cmake.snippets
gollum-3.1.3 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/snippets/cmake.snippets