diff options
-rw-r--r-- | CMakeLists.txt | 31 | ||||
-rw-r--r-- | README.cmake | 3 | ||||
-rw-r--r-- | epan/CMakeLists.txt | 46 | ||||
-rw-r--r-- | epan/dissectors/dcerpc/CMakeLists.txt | 64 | ||||
-rw-r--r-- | epan/wslua/CMakeLists.txt | 12 | ||||
-rw-r--r-- | epan/wspython/CMakeLists.txt | 14 | ||||
-rw-r--r-- | gtk/CMakeLists.txt | 13 | ||||
-rw-r--r-- | plugins/asn1/CMakeLists.txt | 18 | ||||
-rw-r--r-- | plugins/docsis/CMakeLists.txt | 18 | ||||
-rw-r--r-- | plugins/ethercat/CMakeLists.txt | 18 | ||||
-rw-r--r-- | plugins/giop/CMakeLists.txt | 39 | ||||
-rw-r--r-- | plugins/gryphon/CMakeLists.txt | 18 | ||||
-rw-r--r-- | plugins/irda/CMakeLists.txt | 18 | ||||
-rw-r--r-- | plugins/m2m/CMakeLists.txt | 20 | ||||
-rw-r--r-- | plugins/mate/CMakeLists.txt | 28 | ||||
-rw-r--r-- | plugins/opcua/CMakeLists.txt | 18 | ||||
-rw-r--r-- | plugins/profinet/CMakeLists.txt | 18 | ||||
-rw-r--r-- | plugins/sercosiii/CMakeLists.txt | 18 | ||||
-rw-r--r-- | plugins/stats_tree/CMakeLists.txt | 18 | ||||
-rw-r--r-- | plugins/tpg/CMakeLists.txt | 18 | ||||
-rw-r--r-- | plugins/unistim/CMakeLists.txt | 18 | ||||
-rw-r--r-- | plugins/wimax/CMakeLists.txt | 18 | ||||
-rw-r--r-- | plugins/wimaxasncp/CMakeLists.txt | 18 | ||||
-rw-r--r-- | tools/lemon/CMakeLists.txt | 12 | ||||
-rw-r--r-- | wiretap/CMakeLists.txt | 12 |
25 files changed, 425 insertions, 103 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a6e35063f0..95e8a48505 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,7 +69,7 @@ option(AUTOGEN_dcerpc "Autogenerate dcerpc dissectors" OFF) option(AUTOGEN_pidl "Autogenerate pidl dissectors" OFF) option(DISABLE_WERROR "Do not treat Warnings as errors" OFF) -option(ENABLE_EXTRA_GCC_CHECKS "Do additional -W checks in GCC (disables -Werror)" ON) +option(ENABLE_EXTRA_GCC_CHECKS "Do additional -W checks in GCC (disables -Werror)" OFF) option(ENABLE_AIRPCAP "Enable Airpcap support" ON) # todo option(ENABLE_STATIC "Build a static version of Wireshark" OFF) @@ -93,7 +93,6 @@ option(ENABLE_KERBEROS "Build with Kerberos support" ON) set(WIRESHARK_C_FLAGS -O2 - -Werror -Wall -W -Wextra @@ -161,8 +160,8 @@ foreach(THIS_FLAG ${WIRESHARK_C_FLAGS}) math(EXPR C "${C} + 1") endforeach() -if(DISABLE_WERROR OR ENABLE_EXTRA_GCC_CHECKS) - remove_definitions( -Werror ) +if(NOT DISABLE_WERROR AND NOT ENABLE_EXTRA_GCC_CHECKS) + check_c_compiler_flag(-Werror WERROR) endif() if(CMAKE_COMPILER_IS_GNUCC) @@ -650,6 +649,9 @@ if(BUILD_text2pcap) set(text2pcap_FILES text2pcap.c ) + set(text2pcap_CLEAN_FILES + ${text2pcap_FILES} + ) add_lex_files(text2pcap_FILES text2pcap-scanner.l ) @@ -758,6 +760,27 @@ add_custom_target( # todo: Add manpages and onlinedocs and generate them ) +set(CLEAN_FILES + ${wireshark_FILES} + ${tshark_FILES} + ${rawshark_FILES} + ${dftest_FILES} + ${randpkt_FILES} + ${text2pcap_CLEAN_FILES} + ${mergecap_FILES} + ${capinfos_FILES} + ${editcap_FILES} + ${dumpcap_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + install( FILES ${INSTALL_FILES} diff --git a/README.cmake b/README.cmake index 8cffbe4311..c66201cf73 100644 --- a/README.cmake +++ b/README.cmake @@ -80,8 +80,7 @@ What needs to be done? - Fix places in the cmake files marked as todo. - Add back (working) install target. Currently, directories are created with user umask -- Add back -Werror -- Add back compiler flags test +- Add back linker flags test - Build source package (using CPack). - Build rpm package (using CPack). - Build dpkg package (using CPack). diff --git a/epan/CMakeLists.txt b/epan/CMakeLists.txt index 496a6bf9c3..03956bfb1e 100644 --- a/epan/CMakeLists.txt +++ b/epan/CMakeLists.txt @@ -84,6 +84,10 @@ set(DFILTER_FILES dfilter/syntax-tree.c ) +set(DFILTER_CLEAN_FILES + ${DFILTER_FILES} +) + add_lex_files(DFILTER_FILES dfilter/scanner.l ) @@ -1075,16 +1079,6 @@ set(DISSECTOR_FILES ${DIRTY_ASN1_DISSECTOR_SRC} ) -set_source_files_properties( - ${DISSECTOR_SRC} - ${PIDL_DISSECTOR_SRC} - ${PIDL_DISSECTOR_AUTOGEN_SRC} - ${ASN1_DISSECTOR_SRC} - PROPERTIES - # FIXME: -Werror and -pedantic exclude each other: test for -pedantic - # COMPILE_FLAGS -Werror -) - register_dissector_files(register.c dissectors ${DISSECTOR_FILES} @@ -1190,6 +1184,10 @@ set(LIBWIRESHARK_FILES xdlc.c ) +set(LIBWIRESHARK_CLEAN_FILES + ${LIBWIRESHARK_FILES} +) + add_lex_files(LIBWIRESHARK_FILES diam_dict.l dtd_parse.l @@ -1225,6 +1223,33 @@ set(epan_LIBS ${M_LIBRARIES} ) +set(CLEAN_FILES + # Needed to trigger build of the include files for x11 + #x11-declarations.h + #x11-register-info.h + ${LIBWIRESHARK_CLEAN_FILES} + ${CRC_FILES} + ${CRYPT_FILES} + ${DFILTER_CLEAN_FILES} + ${FTYPE_FILES} + # ${DISSECTOR_FILES} contains dirty files + ${DISSECTOR_SRC} + ${PIDL_DISSECTOR_SRC} + ${PIDL_DISSECTOR_AUTOGEN_SRC} + ${ASN1_DISSECTOR_SRC} + # ${DISSECTOR_FILES } end + ${DISSECTOR_SUPPORT_SRC} + ${LIBWIRESHARK_ASM_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + add_library(epan SHARED # Needed to trigger build of the include files for x11 #x11-declarations.h @@ -1238,6 +1263,7 @@ add_library(epan SHARED ${DISSECTOR_SUPPORT_SRC} ${LIBWIRESHARK_ASM_FILES} ) + # In case we want the libwireshark name back # SET_TARGET_PROPERTIES(epan PROPERTIES OUTPUT_NAME "wireshark") diff --git a/epan/dissectors/dcerpc/CMakeLists.txt b/epan/dissectors/dcerpc/CMakeLists.txt index 8cef687350..939b9953fb 100644 --- a/epan/dissectors/dcerpc/CMakeLists.txt +++ b/epan/dissectors/dcerpc/CMakeLists.txt @@ -1,26 +1,26 @@ -# 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.
-#
-
+# 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(PIDL_DISSECTOR_AUTOGEN_NAMES budb butc @@ -28,4 +28,20 @@ set(PIDL_DISSECTOR_AUTOGEN_NAMES PARENT_SCOPE ) -add_executable(idl2wrs idl2wrs.c)
+set(IDL2WRS_FILES + idl2wrs.c +) + +set(CLEAN_FILES + ${IDL2WRS_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + +add_executable(idl2wrs ${IDL2WRS_FILES}) diff --git a/epan/wslua/CMakeLists.txt b/epan/wslua/CMakeLists.txt index c034707952..b9c1a42029 100644 --- a/epan/wslua/CMakeLists.txt +++ b/epan/wslua/CMakeLists.txt @@ -46,6 +46,18 @@ set(WSLUA_FILES init_wslua.c ) +set(CLEAN_FILES + ${WSLUA_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + # Used with untypical CWD set(WSLUA_TAPS_USED ${CMAKE_SOURCE_DIR}/epan/dissectors/packet-http.h diff --git a/epan/wspython/CMakeLists.txt b/epan/wspython/CMakeLists.txt index 0758e53be3..9f02504164 100644 --- a/epan/wspython/CMakeLists.txt +++ b/epan/wspython/CMakeLists.txt @@ -31,6 +31,18 @@ set(WSPYTHON_FILES wspy_proto.c ) +set(CLEAN_FILES + ${WSPYTHON_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + set(wspython_LIBS ${PYTHON_LIBRARIES} ) @@ -54,6 +66,6 @@ install(DIRECTORY wspy_dissectors DESTINATION ${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}/python/${CPACK_PACKAGE_VERSION} - PATTERN ".svn" EXCLUDE + PATTERN ".svn" EXCLUDE ) diff --git a/gtk/CMakeLists.txt b/gtk/CMakeLists.txt index 8d6c24d1fd..33844b76b0 100644 --- a/gtk/CMakeLists.txt +++ b/gtk/CMakeLists.txt @@ -200,6 +200,19 @@ set(WIRESHARK_TAP_SRC # todo # about_dlg.c main_welcome.c: ../image/wssplash.xpm ../image/wssplash-dev.xpm +set(CLEAN_FILES + ${WIRESHARK_GTK_SRC} + ${WIRESHARK_TAP_SRC} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + register_tap_files(wireshark-tap-register.c ${WIRESHARK_TAP_SRC} ) diff --git a/plugins/asn1/CMakeLists.txt b/plugins/asn1/CMakeLists.txt index 9f9e5242dd..7f3e526a06 100644 --- a/plugins/asn1/CMakeLists.txt +++ b/plugins/asn1/CMakeLists.txt @@ -35,6 +35,18 @@ set(PLUGIN_FILES ${DISSECTOR_SUPPORT_SRC} ) +set(CLEAN_FILES + ${PLUGIN_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) register_dissector_files(plugin.c @@ -53,8 +65,8 @@ add_library(asn1 MODULE target_link_libraries(asn1 epan) install(TARGETS asn1 - 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} + 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} ) diff --git a/plugins/docsis/CMakeLists.txt b/plugins/docsis/CMakeLists.txt index 85e3a813fd..1f7667b64a 100644 --- a/plugins/docsis/CMakeLists.txt +++ b/plugins/docsis/CMakeLists.txt @@ -64,6 +64,18 @@ set(PLUGIN_FILES ${DISSECTOR_SRC} ) +set(CLEAN_FILES + ${PLUGIN_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) register_dissector_files(plugin.c @@ -82,8 +94,8 @@ add_library(docsis MODULE target_link_libraries(docsis epan) install(TARGETS docsis - 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} + 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} ) diff --git a/plugins/ethercat/CMakeLists.txt b/plugins/ethercat/CMakeLists.txt index 7e378acfb4..5c635b07d6 100644 --- a/plugins/ethercat/CMakeLists.txt +++ b/plugins/ethercat/CMakeLists.txt @@ -36,6 +36,18 @@ set(PLUGIN_FILES ${DISSECTOR_SRC} ) +set(CLEAN_FILES + ${PLUGIN_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) register_dissector_files(plugin.c @@ -54,8 +66,8 @@ add_library(ethercat MODULE target_link_libraries(ethercat epan) install(TARGETS ethercat - 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} + 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} ) diff --git a/plugins/giop/CMakeLists.txt b/plugins/giop/CMakeLists.txt index 9a7e32e105..aa2776ebd4 100644 --- a/plugins/giop/CMakeLists.txt +++ b/plugins/giop/CMakeLists.txt @@ -36,6 +36,21 @@ set(PARLAY_SRC packet-parlay.c ) +set(CLEAN_FILES + ${COSNAMING_SRC} + ${COSEVENTCOMM_SRC} + # Not clean ${TANGO_SRC} + # Not clean ${PARLAY_SRC} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) # todo @@ -49,9 +64,9 @@ add_library(cosnaming MODULE target_link_libraries(cosnaming epan) install(TARGETS cosnaming - 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} + 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} ) add_library(coseventcomm MODULE @@ -61,9 +76,9 @@ add_library(coseventcomm MODULE target_link_libraries(coseventcomm epan) install(TARGETS coseventcomm - 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} + 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} ) add_library(tango MODULE @@ -73,9 +88,9 @@ add_library(tango MODULE target_link_libraries(tango epan) install(TARGETS tango - 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} + 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} ) add_library(parlay MODULE @@ -85,8 +100,8 @@ add_library(parlay MODULE target_link_libraries(parlay epan) install(TARGETS parlay - 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} + 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} ) diff --git a/plugins/gryphon/CMakeLists.txt b/plugins/gryphon/CMakeLists.txt index dddf7b9087..f138e124aa 100644 --- a/plugins/gryphon/CMakeLists.txt +++ b/plugins/gryphon/CMakeLists.txt @@ -30,6 +30,18 @@ set(PLUGIN_FILES ${DISSECTOR_SRC} ) +set(CLEAN_FILES + ${PLUGIN_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) register_dissector_files(plugin.c @@ -48,8 +60,8 @@ add_library(gryphon MODULE target_link_libraries(gryphon epan) install(TARGETS gryphon - 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} + 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} ) diff --git a/plugins/irda/CMakeLists.txt b/plugins/irda/CMakeLists.txt index fc8dea25c2..3efd5f84b7 100644 --- a/plugins/irda/CMakeLists.txt +++ b/plugins/irda/CMakeLists.txt @@ -32,6 +32,18 @@ set(PLUGIN_FILES ${DISSECTOR_SRC} ) +set(CLEAN_FILES + ${PLUGIN_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) register_dissector_files(plugin.c @@ -50,8 +62,8 @@ add_library(irda MODULE target_link_libraries(irda epan) install(TARGETS irda - 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} + 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} ) diff --git a/plugins/m2m/CMakeLists.txt b/plugins/m2m/CMakeLists.txt index 2399a7ccf2..7739a79075 100644 --- a/plugins/m2m/CMakeLists.txt +++ b/plugins/m2m/CMakeLists.txt @@ -26,7 +26,7 @@ set(DISSECTOR_SRC ) set(DISSECTOR_SUPPORT_SRC - wimax_tlv.c + wimax_tlv.c ) set(PLUGIN_FILES @@ -35,6 +35,18 @@ set(PLUGIN_FILES ${DISSECTOR_SUPPORT_SRC} ) +set(CLEAN_FILES + ${PLUGIN_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) register_dissector_files(plugin.c @@ -53,8 +65,8 @@ add_library(m2m MODULE target_link_libraries(m2m epan) install(TARGETS m2m - 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} + 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} ) diff --git a/plugins/mate/CMakeLists.txt b/plugins/mate/CMakeLists.txt index 88d6fad103..e15fed641b 100644 --- a/plugins/mate/CMakeLists.txt +++ b/plugins/mate/CMakeLists.txt @@ -33,12 +33,12 @@ set(DISSECTOR_SUPPORT_SRC include_directories(${CMAKE_CURRENT_SOURCE_DIR}) -#mate_grammar.c : mate_grammar.lemon mate.h mate_util.h $(LEMON)/lemon$(EXEEXT) -# $(LEMON)/lemon$(EXEEXT) t=$(srcdir)/$(LEMON)/lempar.c $(srcdir)/mate_grammar.lemon || \ -# (rm -f grammar.c grammar.h ; false) +set(DISSECTOR_SUPPORT_CLEAN_SRC + ${DISSECTOR_SUPPORT_SRC} +) add_lemon_files(DISSECTOR_SUPPORT_SRC - mate_grammar.lemon + mate_grammar.lemon ) add_lex_files(DISSECTOR_SUPPORT_SRC @@ -51,6 +51,20 @@ set(PLUGIN_FILES ${DISSECTOR_SUPPORT_SRC} ) +set(CLEAN_FILES + plugin.c + ${DISSECTOR_SRC} + ${DISSECTOR_SUPPORT_CLEAN_SRC} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + register_dissector_files(plugin.c plugin ${DISSECTOR_SRC} @@ -67,8 +81,8 @@ add_library(mate MODULE target_link_libraries(mate epan) install(TARGETS mate - 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} + 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} ) diff --git a/plugins/opcua/CMakeLists.txt b/plugins/opcua/CMakeLists.txt index b984ae857e..ce2acdc81e 100644 --- a/plugins/opcua/CMakeLists.txt +++ b/plugins/opcua/CMakeLists.txt @@ -43,6 +43,18 @@ set(PLUGIN_FILES ${DISSECTOR_SUPPORT_SRC} ) +set(CLEAN_FILES + ${PLUGIN_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) register_dissector_files(plugin.c @@ -61,8 +73,8 @@ add_library(opcua MODULE target_link_libraries(opcua epan) 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} + 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} ) diff --git a/plugins/profinet/CMakeLists.txt b/plugins/profinet/CMakeLists.txt index 5bacab562a..e149c4c397 100644 --- a/plugins/profinet/CMakeLists.txt +++ b/plugins/profinet/CMakeLists.txt @@ -42,6 +42,18 @@ set(PLUGIN_FILES ${DISSECTOR_SUPPORT_SRC} ) +set(CLEAN_FILES + ${PLUGIN_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) register_dissector_files(plugin.c @@ -60,8 +72,8 @@ add_library(profinet MODULE target_link_libraries(profinet epan) install(TARGETS profinet - 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} + 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} ) diff --git a/plugins/sercosiii/CMakeLists.txt b/plugins/sercosiii/CMakeLists.txt index d81958cc7f..897b0c19d2 100644 --- a/plugins/sercosiii/CMakeLists.txt +++ b/plugins/sercosiii/CMakeLists.txt @@ -41,6 +41,18 @@ set(PLUGIN_FILES ${DISSECTOR_SUPPORT_SRC} ) +set(CLEAN_FILES + ${PLUGIN_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) register_dissector_files(plugin.c @@ -59,8 +71,8 @@ add_library(sercosiii MODULE target_link_libraries(sercosiii epan) install(TARGETS sercosiii - 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} + 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} ) diff --git a/plugins/stats_tree/CMakeLists.txt b/plugins/stats_tree/CMakeLists.txt index f1fda94382..a0b0c6366a 100644 --- a/plugins/stats_tree/CMakeLists.txt +++ b/plugins/stats_tree/CMakeLists.txt @@ -26,6 +26,18 @@ set(TAP_SRC pinfo_stats_tree.c ) +set(CLEAN_FILES + ${TAP_SRC} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + # todo # Do I need any of this or is this handled by type MODULE? # asn1_la_LDFLAGS = -module -avoid-version @@ -37,8 +49,8 @@ add_library(stats_tree MODULE target_link_libraries(stats_tree epan) install(TARGETS stats_tree - 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} + 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} ) diff --git a/plugins/tpg/CMakeLists.txt b/plugins/tpg/CMakeLists.txt index 542a83bdc7..94728784c7 100644 --- a/plugins/tpg/CMakeLists.txt +++ b/plugins/tpg/CMakeLists.txt @@ -26,6 +26,18 @@ set(PLUGIN_FILES packet-http.c ) +set(CLEAN_FILES + ${PLUGIN_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + include_directories(${CMAKE_CURRENT_BINARY_DIR}) set(_tpg ${CMAKE_SOURCE_DIR}/tools/tpg) @@ -69,8 +81,8 @@ add_library(tpg MODULE target_link_libraries(tpg epan) install(TARGETS tpg - 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} + 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} ) diff --git a/plugins/unistim/CMakeLists.txt b/plugins/unistim/CMakeLists.txt index 3be624eeb8..3869ff7949 100644 --- a/plugins/unistim/CMakeLists.txt +++ b/plugins/unistim/CMakeLists.txt @@ -30,6 +30,18 @@ set(PLUGIN_FILES ${DISSECTOR_SRC} ) +set(CLEAN_FILES + ${PLUGIN_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) register_dissector_files(plugin.c @@ -48,8 +60,8 @@ add_library(unistim MODULE target_link_libraries(unistim epan) install(TARGETS unistim - 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} + 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} ) diff --git a/plugins/wimax/CMakeLists.txt b/plugins/wimax/CMakeLists.txt index 6dd6092f1c..c1fb170e32 100644 --- a/plugins/wimax/CMakeLists.txt +++ b/plugins/wimax/CMakeLists.txt @@ -75,6 +75,18 @@ set(PLUGIN_FILES ${DISSECTOR_SUPPORT_SRC} ) +set(CLEAN_FILES + ${PLUGIN_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) register_dissector_files(plugin.c @@ -93,8 +105,8 @@ add_library(wimax MODULE target_link_libraries(wimax epan) install(TARGETS wimax - 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} + 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} ) diff --git a/plugins/wimaxasncp/CMakeLists.txt b/plugins/wimaxasncp/CMakeLists.txt index d24831c053..b04db01549 100644 --- a/plugins/wimaxasncp/CMakeLists.txt +++ b/plugins/wimaxasncp/CMakeLists.txt @@ -30,6 +30,18 @@ set(PLUGIN_FILES ${DISSECTOR_SRC} ) +set(CLEAN_FILES + ${PLUGIN_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + add_lex_files(PLUGIN_FILES wimaxasncp_dict.l ) @@ -52,8 +64,8 @@ add_library(wimaxasncp MODULE target_link_libraries(wimaxasncp epan) install(TARGETS wimaxasncp - 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} + 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} ) diff --git a/tools/lemon/CMakeLists.txt b/tools/lemon/CMakeLists.txt index 2b396bcd37..1279110931 100644 --- a/tools/lemon/CMakeLists.txt +++ b/tools/lemon/CMakeLists.txt @@ -25,6 +25,18 @@ set(lemon_FILES lemon.c ) +set(CLEAN_FILES + ${lemon_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + set(lemon_LIBS # Do we need something here on any platform? ) diff --git a/wiretap/CMakeLists.txt b/wiretap/CMakeLists.txt index dbc7e21b87..37e740d8cf 100644 --- a/wiretap/CMakeLists.txt +++ b/wiretap/CMakeLists.txt @@ -71,6 +71,18 @@ set(WIRETAP_FILES wtap.c ) +set(CLEAN_FILES + ${WIRETAP_FILES} +) + +if (WERROR) + set_source_files_properties( + ${CLEAN_FILES} + PROPERTIES + COMPILE_FLAGS -Werror + ) +endif() + add_lex_files(WIRETAP_FILES ascend_scanner.l k12text.l |