2014-09-01 14:33:56 +00:00
|
|
|
# CMakeListsCustom.txt
|
|
|
|
#
|
|
|
|
# Wireshark - Network traffic analyzer
|
|
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
|
|
# Copyright 1998 Gerald Combs
|
|
|
|
#
|
2018-03-06 14:31:02 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2014-09-01 14:33:56 +00:00
|
|
|
#
|
|
|
|
# Add a list of your custom plugins SRC dir here including the path
|
|
|
|
#
|
|
|
|
|
2018-02-15 19:43:07 +00:00
|
|
|
# Fail CMake stage if any of these plugins are missing from source tree
|
2014-09-01 14:33:56 +00:00
|
|
|
set(CUSTOM_PLUGIN_SRC_DIR
|
|
|
|
# private_plugins/foo
|
|
|
|
# or
|
2018-05-21 16:06:58 +00:00
|
|
|
# plugins/epan/foo
|
2014-09-18 06:05:48 +00:00
|
|
|
)
|
2016-06-19 08:33:59 +00:00
|
|
|
|
2018-02-15 19:43:07 +00:00
|
|
|
# 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
|
|
|
|
)
|
|
|
|
|
|
|
|
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} )
|
|
|
|
else()
|
|
|
|
message( WARNING "Custom plugins: No ${_plugin_dir}/CMakeLists.txt file found - ignoring" )
|
|
|
|
endif()
|
|
|
|
endforeach()
|
|
|
|
|
2016-06-19 08:33:59 +00:00
|
|
|
#
|
2019-07-26 18:43:17 +00:00
|
|
|
# Editor modelines - https://www.wireshark.org/tools/modelines.html
|
2016-06-19 08:33:59 +00:00
|
|
|
#
|
|
|
|
# Local variables:
|
|
|
|
# c-basic-offset: 8
|
|
|
|
# tab-width: 8
|
|
|
|
# indent-tabs-mode: t
|
|
|
|
# End:
|
|
|
|
#
|
|
|
|
# vi: set shiftwidth=8 tabstop=8 noexpandtab:
|
|
|
|
# :indentSize=8:tabSize=8:noTabs=false:
|
|
|
|
#
|