home/.vim/bundle/vim-template/templates/=template=.cmake
Salt 58b1e98578 .vim: Dammit
Forgot to trim .git information from plugins
2017-08-16 14:37:46 -05:00

14 lines
508 B
CMake

cmake_minimum_required (VERSION 2.8)
# projectname is the same as the main-executable
project(%HERE%%FDIR%)
add_definitions('-g')
add_definitions('-Wall')
#add_definitions('-std=c++11')
add_executable(${PROJECT_NAME} ${PROJECT_NAME}.cpp)
add_custom_target(${PROJECT_NAME}-symlink ALL ln --force -s ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/${PROJECT_NAME} DEPENDS ${PROJECT_NAME})
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${CMAKE_SOURCE_DIR}/${PROJECT_NAME})