Initial commit.

This commit is contained in:
yan
2011-11-17 15:45:33 -06:00
commit 882015bc6d
1819 changed files with 111625 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
ADD_EXECUTABLE(${1:bin})
+16
View File
@@ -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}
)
+3
View File
@@ -0,0 +1,3 @@
ADD_DEPENDENCIES(${1:target}
${2:dep}
)
+1
View File
@@ -0,0 +1 @@
FIND_PACKAGE(${1:LIBRARY})
+1
View File
@@ -0,0 +1 @@
FILE(GLOB ${1:SRCS} *.${2:cpp})
+3
View File
@@ -0,0 +1,3 @@
INCLUDE_DIRECTORIES(
${${1:INCLUDE_DIR}}
)
+3
View File
@@ -0,0 +1,3 @@
ADD_LIBRARY(${1:lib} ${2:STATIC}
${${3:SRCS}}
)
+3
View File
@@ -0,0 +1,3 @@
TARGET_LINK_LIBRARIES(${1:bin}
${2:somelib}
)
+4
View File
@@ -0,0 +1,4 @@
SET_TARGET_PROPERTIES(${1:target}
${2:PROPERTIES} ${3:COMPILE_FLAGS}
${4:"-O3 -Wall -pedantic"}
)
+1
View File
@@ -0,0 +1 @@
SET(${1:var} ${2:val})
+1
View File
@@ -0,0 +1 @@
ADD_SUBDIRECTORY(${1:src})