mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
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
This commit is contained in:
parent
c40277d8cd
commit
d63caa0c30
3 changed files with 28 additions and 0 deletions
|
@ -259,6 +259,7 @@ IF(NOT WITHOUT_SERVER)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
INCLUDE(cmake/abi_check.cmake)
|
INCLUDE(cmake/abi_check.cmake)
|
||||||
|
INCLUDE(cmake/tags.cmake)
|
||||||
|
|
||||||
CONFIGURE_FILE(config.h.cmake ${CMAKE_BINARY_DIR}/include/my_config.h)
|
CONFIGURE_FILE(config.h.cmake ${CMAKE_BINARY_DIR}/include/my_config.h)
|
||||||
CONFIGURE_FILE(config.h.cmake ${CMAKE_BINARY_DIR}/include/config.h)
|
CONFIGURE_FILE(config.h.cmake ${CMAKE_BINARY_DIR}/include/config.h)
|
||||||
|
|
|
@ -24,6 +24,7 @@ EXTRA_DIST = \
|
||||||
dtrace_prelink.cmake \
|
dtrace_prelink.cmake \
|
||||||
versioninfo.rc.in \
|
versioninfo.rc.in \
|
||||||
mysql_add_executable.cmake \
|
mysql_add_executable.cmake \
|
||||||
|
tags.cmake \
|
||||||
install_layout.cmake \
|
install_layout.cmake \
|
||||||
build_configurations/mysql_release.cmake \
|
build_configurations/mysql_release.cmake \
|
||||||
os/Windows.cmake \
|
os/Windows.cmake \
|
||||||
|
|
26
cmake/tags.cmake
Normal file
26
cmake/tags.cmake
Normal file
|
@ -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()
|
Loading…
Reference in a new issue