forked from osmocom/wireshark
Add CMake stuff for custom plugins.
Change-Id: I1eff6b902d9bd9fb8f3073ab0f4fc3dd143d0fc4 Reviewed-on: https://code.wireshark.org/review/3946 Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
c3439329fd
commit
f0ce0d7ecd
|
@ -772,6 +772,7 @@ ADD_CUSTOM_COMMAND(
|
|||
)
|
||||
|
||||
if(ENABLE_PLUGINS)
|
||||
include(plugins/CMakeListsCustom.txt)
|
||||
set(HAVE_PLUGINS 1)
|
||||
set(PLUGIN_DIR "${DATAFILE_DIR}/plugins/${CPACK_PACKAGE_VERSION}")
|
||||
set(PLUGIN_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}")
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
# CMakeListsCustom.txt
|
||||
#
|
||||
# Wireshark - Network traffic analyzer
|
||||
# By Gerald Combs <gerald@wireshark.org>
|
||||
# Copyright 1998 Gerald Combs
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version 2
|
||||
# of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
# Add a list of your custom plugins SRC dir here including the path
|
||||
#
|
||||
|
||||
set(CUSTOM_PLUGIN_SRC_DIR
|
||||
# private_plugins/foo
|
||||
# or
|
||||
# plugins/foo
|
||||
)
|
Loading…
Reference in New Issue