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