From 3d290f02480327b2a27c8ea8a1b6646156a8f693 Mon Sep 17 00:00:00 2001 From: David Perry Date: Wed, 7 Dec 2022 18:50:28 +0000 Subject: [PATCH] Demonstrate `CUSTOM_TSHARK_TAP_SRC` for CMake --- CMakeListsCustom.txt.example | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeListsCustom.txt.example b/CMakeListsCustom.txt.example index e10d4cec26..1501d8ecf1 100644 --- a/CMakeListsCustom.txt.example +++ b/CMakeListsCustom.txt.example @@ -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} )