EMACS: Discovered skeletons
Added a skeleton for my cmake projects
This commit is contained in:
parent
2e952899b0
commit
372171f7ed
1 changed files with 12 additions and 0 deletions
12
emacs.d/50-skeletons.el
Normal file
12
emacs.d/50-skeletons.el
Normal file
|
@ -0,0 +1,12 @@
|
|||
(define-skeleton cmake-project-skeleton
|
||||
"A cmake project template file"
|
||||
"Name: "
|
||||
"cmake_minimum_required(VERSION 2.6)\n"
|
||||
"project(" str ")\n"
|
||||
"\n"
|
||||
"set(" str "_VERSION_MAJOR 0)\n"
|
||||
"set(" str "_VERSION_MINOR 0)\n"
|
||||
"set(" str "_VERSION_PATCH 0)\n"
|
||||
"\n"
|
||||
"set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})\n"
|
||||
"add_subdirectory(src)")
|
Loading…
Reference in a new issue