Beginnings of CheckAPI support. More diligence needed

(need to seperate generated files into their own variables).

svn path=/trunk/; revision=53407
This commit is contained in:
Jörg Mayer 2013-11-18 07:42:23 +00:00
parent 7b80faa66f
commit 2276ff07d2
2 changed files with 23 additions and 0 deletions

View File

@ -1304,6 +1304,11 @@ install(
PATTERN "faq.py" EXCLUDE
)
include( UseCheckAPI )
CHECKAPI(
${TSHARK_TAP_SRC}
${wireshark_FILES}
)
if(DOC_DIR)
message(STATUS "Docdir install: ${DOC_DIR}")

View File

@ -0,0 +1,18 @@
#
# $Id$
#
macro( CHECKAPI )
set( _sources ${ARGN} )
ADD_CUSTOM_TARGET(checkapi
COMMAND ${PERL_EXECUTABLE}
${CMAKE_SOURCE_DIR}/tools/checkAPIs.pl
-build
${_sources}
WORKING_DIRECTORY
${CMAKE_SOURCE_DIR}
DEPENDS
${CMAKE_SOURCE_DIR}/tools/checkAPIs.pl
${_sources}
)
ENDMACRO()