aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2014-09-01 16:33:56 +0200
committerAnders Broman <a.broman58@gmail.com>2014-09-01 14:37:30 +0000
commitf0ce0d7ecd248a2bb45eb4fb217965b71281a645 (patch)
tree2b01b4dd26f10bf32fd85fda14212241913b998d
parentc3439329fd1e84e4c0bbff5224aa7f6ae00d21d1 (diff)
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>
-rw-r--r--CMakeLists.txt1
-rw-r--r--plugins/CMakeListsCustom.txt28
2 files changed, 29 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 299ddffa20..7276e5eec4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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}")
diff --git a/plugins/CMakeListsCustom.txt b/plugins/CMakeListsCustom.txt
new file mode 100644
index 0000000000..f9cd0fbf83
--- /dev/null
+++ b/plugins/CMakeListsCustom.txt
@@ -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
+) \ No newline at end of file