summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2010-05-14 18:42:10 +0400
committerKonstantin Osipov <kostja@sun.com>2010-05-14 18:42:10 +0400
commitd63caa0c30ad5f6d19709fe64817ad546546f97b (patch)
treea76b4b4245664d93f6bf6a72104d17e21933b7a3 /cmake
parentc40277d8cd8101397627cc4d8624c74a8a2b5c44 (diff)
downloadmariadb-git-d63caa0c30ad5f6d19709fe64817ad546546f97b.tar.gz
Committing on behalf of Valdislav Vaintroub (reviewed and
approved): 3161 Vladislav Vaintroub 2010-04-29 Bug#53196 : CMake builds don't support 'make tags' and 'make ctags' targets. - Added tags and ctags targets
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Makefile.am1
-rw-r--r--cmake/tags.cmake26
2 files changed, 27 insertions, 0 deletions
diff --git a/cmake/Makefile.am b/cmake/Makefile.am
index 6fe1a9556be..af3ec4f980d 100644
--- a/cmake/Makefile.am
+++ b/cmake/Makefile.am
@@ -24,6 +24,7 @@ EXTRA_DIST = \
dtrace_prelink.cmake \
versioninfo.rc.in \
mysql_add_executable.cmake \
+ tags.cmake \
install_layout.cmake \
build_configurations/mysql_release.cmake \
os/Windows.cmake \
diff --git a/cmake/tags.cmake b/cmake/tags.cmake
new file mode 100644
index 00000000000..07c1411a1d6
--- /dev/null
+++ b/cmake/tags.cmake
@@ -0,0 +1,26 @@
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+# Generate tag files
+IF(UNIX)
+ ADD_CUSTOM_TARGET (tags
+ COMMAND support-files/build-tags
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
+ )
+ ADD_CUSTOM_TARGET (ctags
+ COMMAND ctags -R -f CTAGS
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
+ )
+ENDIF()