From 94e1880dfb83f3bcaee4e6c7ccfcb6df279a95cd Mon Sep 17 00:00:00 2001 From: Nicky Date: Sun, 18 Aug 2013 00:03:21 +0200 Subject: [PATCH] New flag ND_CTAGS to generate e/ctags during build. --- indra/newview/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index 525fe115ad..510caaa503 100755 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -1566,6 +1566,17 @@ if (LINUX) set(viewer_LIBRARIES Xinerama ) + + # 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 ) + # + endif (LINUX) if (WINDOWS)