New flag ND_CTAGS to generate e/ctags during build.

meow-7.2.2
Nicky 2013-08-18 00:03:21 +02:00
parent bcc9ad6b39
commit 94e1880dfb
1 changed files with 11 additions and 0 deletions

View File

@ -1566,6 +1566,17 @@ if (LINUX)
set(viewer_LIBRARIES
Xinerama
)
# <FS:ND> Enable user to create a ctags database via using -DND_CTAGS=On
if( ND_CTAGS )
message( "Will generate ctags database during compilation" )
set_source_files_properties( TAGS PROPERTIES GENERATED true)
add_custom_command ( OUTPUT TAGS COMMAND ctags --extra=+q --fields=+aiS --c++-kinds=+p -e --recurse=yes .
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} )
list(APPEND viewer_SOURCE_FILES TAGS )
endif( ND_CTAGS )
# </FS:ND>
endif (LINUX)
if (WINDOWS)