Add ctags and etags targets to CMake

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5265 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2015-04-21 22:24:49 +00:00
parent b5c4abf714
commit 42ad221d9e
2 changed files with 19 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
TAGS

View File

@ -505,6 +505,13 @@ if (APPLE)
endif (APPLE)
#
# find some useful tools
#
find_program(CTAGS ctags)
find_program(ETAGS etags)
#
# C & C++ setup
#
@ -727,6 +734,17 @@ elseif (CMAKE_HOST_WIN32)
add_definitions (-DWIN32)
endif ()
#
# source navigation
#
set (sources
${CMAKE_SOURCE_DIR}/*
${CMAKE_SOURCE_DIR}/logbook/*
${CMAKE_SOURCE_DIR}/lib/*
)
add_custom_target (ctags COMMAND ${CTAGS} -o ${CMAKE_SOURCE_DIR}/tags -R ${sources})
add_custom_target (etags COMMAND ${ETAGS} -o ${CMAKE_SOURCE_DIR}/TAGS -R ${sources})
# embedded resources
function (add_resources resources path)