TODO netlogon_user_flags_ntlmv2_enabled
[wireshark-sm.git] / ui / CMakeLists.txt
bloba8c882c5c1514c45e3ebcbc9aa5120636941c878
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(NONGENERATED_UI_SRC
11         alert_box.c
12         capture.c
13         capture_opts.c
14         capture_ui_utils.c
15         commandline.c
16         decode_as_utils.c
17         dissect_opts.c
18         export_pdu_ui_utils.c
19         help_url.c
20         failure_message.c
21         file_dialog.c
22         firewall_rules.c
23         iface_toolbar.c
24         iface_lists.c
25         io_graph_item.c
26         language.c
27         mcast_stream.c
28         packet_list_utils.c
29         packet_range.c
30         persfilepath_opt.c
31         preference_utils.c
32         profile.c
33         proto_hier_stats.c
34         recent.c
35         rtp_media.c
36         rtp_stream.c
37         rtp_stream_id.c
38         service_response_time.c
39         software_update.c
40         ssl_key_export.c
41         tap_export_pdu.c
42         tap-iax2-analysis.c
43         tap-rtp-analysis.c
44         tap-rtp-common.c
45         tap-sctp-analysis.c
46         tap-rlc-graph.c
47         tap-tcp-stream.c
48         text_import.c
49         text_import_regex.c
50         time_shift.c
51         util.c
52         voip_calls.c
55 # Enables visibility in IDEs
56 file(GLOB EXTRA_UI_HEADERS
57         rtp_media.h
58         rtp_stream.h
59         rtp_stream_id.h
60         tap-iax2-analysis.h
61         tap-rtp-analysis.h
64 set(UI_SRC ${NONGENERATED_UI_SRC})
66 add_lex_files(LEX_FILES UI_SRC
67         text_import_scanner.l
70 set_source_files_properties(
71         ${NONGENERATED_UI_SRC}
72         PROPERTIES
73         COMPILE_FLAGS "${WERROR_COMMON_FLAGS}"
76 add_library(ui STATIC ${UI_SRC})
78 target_link_libraries(ui
79         PRIVATE
80                 wsutil
81                 wiretap
82                 ${M_LIBRARIES}
85 target_include_directories(ui
86         SYSTEM PRIVATE
87                 ${PCAP_INCLUDE_DIRS}
88                 ${WINSPARKLE_INCLUDE_DIRS}
91 add_library(summary STATIC summary.c)
93 target_link_libraries(summary
94         PRIVATE
95                 wiretap
96                 epan
97                 wsutil
98                 ${GCRYPT_LIBRARIES}
99         )
101 target_include_directories(summary
102         SYSTEM PRIVATE
103                 ${GCRYPT_INCLUDE_DIRS}
106 set_target_properties(ui summary PROPERTIES
107         LINK_FLAGS "${WS_LINK_FLAGS}"
108         FOLDER "UI"
110 if(MSVC)
111         set_target_properties(ui summary PROPERTIES
112                 LINK_FLAGS_DEBUG "${WS_MSVC_DEBUG_LINK_FLAGS}"
113         )
114 endif()
116 CHECKAPI(
117         NAME
118           ui-base
119         SWITCHES
120         SOURCES
121           ${NONGENERATED_UI_SRC}
122 # Flex files not included due to use of malloc, free etc.
124 CHECKAPI(
125         NAME
126           ui-todo
127         SWITCHES
128           -M
129         SOURCES
130           ${NONGENERATED_UI_SRC}
131 # Flex files not included due to use of malloc, free etc.
135 # Editor modelines  -  https://www.wireshark.org/tools/modelines.html
137 # Local variables:
138 # c-basic-offset: 8
139 # tab-width: 8
140 # indent-tabs-mode: t
141 # End:
143 # vi: set shiftwidth=8 tabstop=8 noexpandtab:
144 # :indentSize=8:tabSize=8:noTabs=false: