forked from osmocom/wireshark
Add tools/lemon/CMakeLists.txt which creates the lemon parser executable
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30461 f5534014-38df-0310-8fa8-9805f1628bb7
This commit is contained in:
parent
ccf5feb4d7
commit
286a613ef9
|
@ -374,6 +374,7 @@ endif()
|
|||
add_subdirectory( codecs )
|
||||
add_subdirectory( epan )
|
||||
add_subdirectory( gtk )
|
||||
add_subdirectory( tools/lemon )
|
||||
add_subdirectory( wiretap )
|
||||
add_subdirectory( wsutil )
|
||||
|
||||
|
@ -401,17 +402,6 @@ ADD_CUSTOM_COMMAND(
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/make-version.pl
|
||||
)
|
||||
|
||||
# Create the necessary tools
|
||||
set(lemon_FILES
|
||||
tools/lemon/lemon.c
|
||||
)
|
||||
set(lemon_LIBS
|
||||
# Do we need something here on any platform?
|
||||
)
|
||||
add_executable(lemon ${lemon_FILES})
|
||||
target_link_libraries(lemon ${lemon_LIBS})
|
||||
# but don't install
|
||||
|
||||
register_tap_files(tshark-tap-register.c
|
||||
${TSHARK_TAP_SRC}
|
||||
)
|
||||
|
|
|
@ -10,7 +10,8 @@ MACRO(ADD_LEMON_FILES _sources )
|
|||
SET(_out ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.c)
|
||||
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${_out}
|
||||
OUTPUT
|
||||
${_out}
|
||||
COMMAND lemon
|
||||
t=${_lemonpardir}/lempar.c
|
||||
${srcdir}/${_in}
|
||||
|
@ -20,4 +21,3 @@ MACRO(ADD_LEMON_FILES _sources )
|
|||
SET(${_sources} ${${_sources}} ${_out} )
|
||||
ENDFOREACH (_current_FILE)
|
||||
ENDMACRO(ADD_LEMON_FILES)
|
||||
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
# CMakeLists.txt
|
||||
#
|
||||
# $Id: CMakeLists.txt 30460 2009-10-10 05:35:21Z krj $
|
||||
#
|
||||
# Wireshark - Network traffic analyzer
|
||||
# By Gerald Combs <gerald@wireshark.org>
|
||||
# Copyright 1998 Gerald Combs
|
||||
#
|
||||
# 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; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
|
||||
set(lemon_FILES
|
||||
lemon.c
|
||||
)
|
||||
|
||||
set(lemon_LIBS
|
||||
# Do we need something here on any platform?
|
||||
)
|
||||
|
||||
add_executable(lemon ${lemon_FILES})
|
||||
|
||||
target_link_libraries(lemon ${lemon_LIBS})
|
Loading…
Reference in New Issue