diff options
author | Jörg Mayer <jmayer@loplof.de> | 2009-09-21 00:19:07 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2009-09-21 00:19:07 +0000 |
commit | 95182116aac88bf415c13697b9b9734a66b3867a (patch) | |
tree | 95f44e60773d6863de5a503b6cea0dcb1848e37c /plugins/opcua/CMakeLists.txt | |
parent | c9dcf6c41583f92a2ea138af1a5af5f8c5af71fe (diff) | |
download | wireshark-95182116aac88bf415c13697b9b9734a66b3867a.tar.gz wireshark-95182116aac88bf415c13697b9b9734a66b3867a.tar.bz2 wireshark-95182116aac88bf415c13697b9b9734a66b3867a.zip |
CMake:
- Add opcua to the list of plugins to build
- Link the gtk stuff statically into wireshark
- Beginnings of "make install"
- Change a few things about install paths
svn path=/trunk/; revision=30029
Diffstat (limited to 'plugins/opcua/CMakeLists.txt')
-rw-r--r-- | plugins/opcua/CMakeLists.txt | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/plugins/opcua/CMakeLists.txt b/plugins/opcua/CMakeLists.txt new file mode 100644 index 0000000000..5b39baa89c --- /dev/null +++ b/plugins/opcua/CMakeLists.txt @@ -0,0 +1,88 @@ +# CMakeLists.txt +# +# $Id$ +# +# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# + +set(DISSECTOR_SRC + opcua.c +) + +set(DISSECTOR_SUPPORT_SRC + opcua_transport_layer.c + opcua_security_layer.c + opcua_application_layer.c + opcua_serviceparser.c + opcua_complextypeparser.c + opcua_enumparser.c + opcua_simpletypes.c + opcua_servicetable.c + opcua_hfindeces.c +) + +set(PLUGIN_FILES + plugin.c + ${DISSECTOR_SRC} + ${DISSECTOR_SUPPORT_SRC} +) + +include_directories(${CMAKE_CURRENT_SOURCE_DIR}) + +ADD_CUSTOM_COMMAND( +# FIXME: Only the Python stuff has been implemented +# Make this into a MACRO, to avoid duplication with epan/ +#plugin.c: $(DISSECTOR_SRC) $(top_srcdir)/tools/make-dissector-reg +# $(top_srcdir)/tools/make-dissector-reg.py +# @if test -n "$(PYTHON)"; then +# echo Making plugin.c with python ; +# $(PYTHON) $(top_srcdir)/tools/make-dissector-reg.py $(srcdir) +# plugin $(DISSECTOR_SRC) ; +# else +# echo Making plugin.c with shell script ; +# $(top_srcdir)/tools/make-dissector-reg $(srcdir) +# $(plugin_src) plugin $(DISSECTOR_SRC) ; +# fi + + OUTPUT plugin.c + COMMAND ${PYTHON_EXECUTABLE} + ${CMAKE_SOURCE_DIR}/tools/make-dissector-reg.py + ${CMAKE_CURRENT_SOURCE_DIR} + plugin + ${DISSECTOR_SRC} + DEPENDS + ${DISSECTOR_SRC} + ${CMAKE_SOURCE_DIR}/tools/make-dissector-reg + ${CMAKE_SOURCE_DIR}/tools/make-dissector-reg.py +) + +# todo +# Do I need any of this or is this handled by type MODULE? +# asn1_la_LDFLAGS = -module -avoid-version + +add_library(opcua MODULE + ${PLUGIN_FILES} +) + +install(TARGETS opcua + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} + RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION} +) + |