Initial commit.
This commit is contained in:
Executable
+1
@@ -0,0 +1 @@
|
||||
ADD_EXECUTABLE(${1:bin})
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
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}
|
||||
)
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
ADD_DEPENDENCIES(${1:target}
|
||||
${2:dep}
|
||||
)
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
FIND_PACKAGE(${1:LIBRARY})
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
FILE(GLOB ${1:SRCS} *.${2:cpp})
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
INCLUDE_DIRECTORIES(
|
||||
${${1:INCLUDE_DIR}}
|
||||
)
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
ADD_LIBRARY(${1:lib} ${2:STATIC}
|
||||
${${3:SRCS}}
|
||||
)
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
TARGET_LINK_LIBRARIES(${1:bin}
|
||||
${2:somelib}
|
||||
)
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
SET_TARGET_PROPERTIES(${1:target}
|
||||
${2:PROPERTIES} ${3:COMPILE_FLAGS}
|
||||
${4:"-O3 -Wall -pedantic"}
|
||||
)
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
SET(${1:var} ${2:val})
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
ADD_SUBDIRECTORY(${1:src})
|
||||
Reference in New Issue
Block a user