Introduce UseMakeTapReg.cmake

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30436 f5534014-38df-0310-8fa8-9805f1628bb7
This commit is contained in:
krj 2009-10-09 16:54:30 +00:00
parent 3c613b62c1
commit cf9af0f69c
2 changed files with 20 additions and 0 deletions

View File

@ -29,6 +29,7 @@ cmake_minimum_required(VERSION 2.6)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
INCLUDE(UseLemon)
INCLUDE(UseMakeDissectorReg)
INCLUDE(UseMakeTapReg)
# Under linux the release mode (CMAKE_BUILD_TYPE=release) defines NDEBUG

View File

@ -0,0 +1,19 @@
#
# $Id$
#
MACRO(REGISTER_TAP_FILES _outputfile )
set( _sources ${ARGN} )
ADD_CUSTOM_COMMAND(
OUTPUT
${_outputfile}
COMMAND ${SHELL}
${CMAKE_SOURCE_DIR}/tools/make-tapreg-dotc
${_outputfile}
${CMAKE_CURRENT_SOURCE_DIR}
${_sources}
DEPENDS
${CMAKE_SOURCE_DIR}/tools/make-tapreg-dotc
${_sources}
)
ENDMACRO(REGISTER_TAP_FILES)