3 # Wireshark - Network traffic analyzer
4 # By Gerald Combs <gerald@wireshark.org>
5 # Copyright 1998 Gerald Combs
7 # SPDX-License-Identifier: GPL-2.0-or-later
10 set(DFILTER_PUBLIC_HEADERS
21 set(DFILTER_HEADER_FILES
22 ${DFILTER_PUBLIC_HEADERS}
37 set(DFILTER_NONGENERATED_FILES
58 source_group(dfilter FILES ${DFILTER_NONGENERATED_FILES})
60 set(DFILTER_FILES ${DFILTER_NONGENERATED_FILES})
62 add_lex_files(LEX_FILES DFILTER_FILES
66 add_lemon_files(LEMON_FILES DFILTER_FILES
71 # We don't enable -Werror on generated code to make the build a
72 # little less fragile when configured warnings change.
74 set_source_files_properties(
75 ${DFILTER_NONGENERATED_FILES}
77 COMPILE_FLAGS "${WERROR_COMMON_FLAGS}"
80 add_library(dfilter OBJECT
82 #Included so that Visual Studio can properly put header files in solution
83 ${DFILTER_HEADER_FILES}
88 target_include_directories(dfilter
90 ${CMAKE_CURRENT_BINARY_DIR}
91 ${CMAKE_CURRENT_SOURCE_DIR}
92 ${CMAKE_SOURCE_DIR}/epan
93 ${CMAKE_SOURCE_DIR}/tools/lemon
96 set_target_properties(dfilter PROPERTIES
97 FOLDER "Libs/epan/dfilter"
98 COMPILE_DEFINITIONS "WS_BUILD_DLL"
101 install(FILES ${DFILTER_PUBLIC_HEADERS}
102 DESTINATION "${PROJECT_INSTALL_INCLUDEDIR}/epan/dfilter"
103 COMPONENT "Development"
112 ${DFILTER_NONGENERATED_FILES}
116 # Editor modelines - https://www.wireshark.org/tools/modelines.html
121 # indent-tabs-mode: t
124 # vi: set shiftwidth=8 tabstop=8 noexpandtab:
125 # :indentSize=8:tabSize=8:noTabs=false: