Demonstrate `CUSTOM_TSHARK_TAP_SRC` for CMake

This commit is contained in:
David Perry 2022-12-07 18:50:28 +00:00 committed by AndersBroman
parent f413260df9
commit 3d290f0248
1 changed files with 7 additions and 1 deletions

View File

@ -18,9 +18,15 @@ set(CUSTOM_PLUGIN_SRC_DIR
# Do not fail CMake stage if any of the optional plugins are missing from source tree
set(_OPTIONAL_CUSTOM_PLUGIN_SRC_DIR
plugins/epan/bar
# plugins/epan/bar
)
# Add your custom TShark taps here
set(CUSTOM_TSHARK_TAP_SRC
# ui/cli/tap-baz.c
)
# This loop handles supporting optional plugins
foreach( _plugin_dir ${_OPTIONAL_CUSTOM_PLUGIN_SRC_DIR} )
if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_plugin_dir}/CMakeLists.txt )
list( APPEND CUSTOM_PLUGIN_SRC_DIR ${_plugin_dir} )