wmem: allow wmem_destroy_list to ignore a NULL list.
[metze/wireshark/wip.git] / CMakeListsCustom.txt.example
1 # CMakeListsCustom.txt
2 #
3 # Wireshark - Network traffic analyzer
4 # By Gerald Combs <gerald@wireshark.org>
5 # Copyright 1998 Gerald Combs
6 #
7 # SPDX-License-Identifier: GPL-2.0-or-later
8 #
9 # Add a list of your custom plugins SRC dir here including the path
10 #
11
12 # Fail CMake stage if any of these plugins are missing from source tree
13 set(CUSTOM_PLUGIN_SRC_DIR
14 #       private_plugins/foo
15 # or
16 #       plugins/epan/foo
17 )
18
19 # Do not fail CMake stage if any of the optional plugins are missing from source tree
20 set(_OPTIONAL_CUSTOM_PLUGIN_SRC_DIR
21         plugins/epan/bar
22 )
23
24 foreach(  _plugin_dir ${_OPTIONAL_CUSTOM_PLUGIN_SRC_DIR} )
25         if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_plugin_dir}/CMakeLists.txt )
26                 list( APPEND CUSTOM_PLUGIN_SRC_DIR ${_plugin_dir} )
27         else()
28                 message( WARNING "Custom plugins: No ${_plugin_dir}/CMakeLists.txt file found - ignoring" )
29         endif()
30 endforeach()
31
32 #
33 # Editor modelines  -  http://www.wireshark.org/tools/modelines.html
34 #
35 # Local variables:
36 # c-basic-offset: 8
37 # tab-width: 8
38 # indent-tabs-mode: t
39 # End:
40 #
41 # vi: set shiftwidth=8 tabstop=8 noexpandtab:
42 # :indentSize=8:tabSize=8:noTabs=false:
43 #