dcerpc-netlogon: remove unused variable
[wireshark-sm.git] / epan / dfilter / CMakeLists.txt
blobe4fd6bdffa3c8a3bff46365ced58568c009005cf
1 # CMakeLists.txt
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
11         dfilter.h
12         dfilter-int.h
13         dfilter-loc.h
14         dfilter-plugin.h
15         dfilter-translator.h
16         dfunctions.h
17         drange.h
18         syntax-tree.h
21 set(DFILTER_HEADER_FILES
22         ${DFILTER_PUBLIC_HEADERS}
23         dfilter-macro.h
24         dfilter-macro-uat.h
25         dfvm.h
26         gencode.h
27         semcheck.h
28         sttype-field.h
29         sttype-function.h
30         sttype-number.h
31         sttype-pointer.h
32         sttype-set.h
33         sttype-slice.h
34         sttype-op.h
37 set(DFILTER_NONGENERATED_FILES
38         dfilter.c
39         dfilter-macro.c
40         dfilter-macro-uat.c
41         dfilter-plugin.c
42         dfilter-translator.c
43         dfunctions.c
44         dfvm.c
45         drange.c
46         gencode.c
47         semcheck.c
48         sttype-field.c
49         sttype-function.c
50         sttype-number.c
51         sttype-pointer.c
52         sttype-set.c
53         sttype-slice.c
54         sttype-string.c
55         sttype-op.c
56         syntax-tree.c
58 source_group(dfilter FILES ${DFILTER_NONGENERATED_FILES})
60 set(DFILTER_FILES ${DFILTER_NONGENERATED_FILES})
62 add_lex_files(LEX_FILES DFILTER_FILES
63         scanner.l
66 add_lemon_files(LEMON_FILES DFILTER_FILES
67         grammar.lemon
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}
76         PROPERTIES
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}
85         ${DFILTER_FILES}
88 target_include_directories(dfilter
89         PRIVATE
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"
104         EXCLUDE_FROM_ALL
107 CHECKAPI(
108         NAME
109           dfilter
110         SWITCHES
111         SOURCES
112           ${DFILTER_NONGENERATED_FILES}
116 # Editor modelines  -  https://www.wireshark.org/tools/modelines.html
118 # Local variables:
119 # c-basic-offset: 8
120 # tab-width: 8
121 # indent-tabs-mode: t
122 # End:
124 # vi: set shiftwidth=8 tabstop=8 noexpandtab:
125 # :indentSize=8:tabSize=8:noTabs=false: