diff --git a/.gitignore b/.gitignore index 6fd70f3a6248..da8844c2d49a 100644 --- a/.gitignore +++ b/.gitignore @@ -75,6 +75,7 @@ scripts/RelWithDebInfo scripts/astyle.exe scripts/qgisstyle* src/core/qgsexpression_texts.cpp +tags tests/testdata/*.aux.xml tests/testdata/cache/ tests/testdata/checker360by180.asc.aux.xml diff --git a/CMakeLists.txt b/CMakeLists.txt index eaf085dc366e..802839dac7f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -610,6 +610,32 @@ if (ENABLE_TESTS) endif() +add_custom_target(tags COMMAND + cd ${CMAKE_CURRENT_SOURCE_DIR} && ctags + --c++-kinds=+p + --exclude=build + --exclude=.ci + --exclude=cmake + --exclude=cmake_templates + --exclude=debian + --exclude=doc + --exclude=.docker + --exclude=editors + --exclude=.github + --exclude=i18n + --exclude=images + --exclude=resources + --exclude=rpm + --exclude=scripts + --exclude=Testing + --exclude=tests + --exclude=.tx + --extras=+q + --fields=+iaS + --language-force=C++ + --recurse=yes +) + if (WITH_CORE) # ModelTest set(ENABLE_MODELTEST FALSE CACHE BOOL "Enable QT ModelTest (not for production)")