Skip to content

Commit

Permalink
add cmake template
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Zenzes <mzenzes@mega2000.de>
  • Loading branch information
Martin Zenzes authored and aperezdc committed Apr 1, 2014
1 parent a7be9e5 commit d0f2ffd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions templates/template.cmake
@@ -0,0 +1,13 @@
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})

0 comments on commit d0f2ffd

Please sign in to comment.