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
12 set(PLATFORM_CAPUTILS_SRC
13 capture-pcap-util-unix.c
18 set(PLATFORM_CAPUTILS_SRC
25 ${PLATFORM_CAPUTILS_SRC}
29 set_source_files_properties(
32 COMPILE_FLAGS "${WERROR_COMMON_FLAGS}"
36 add_library(caputils STATIC
40 target_link_libraries(caputils
42 $<$<BOOL:${PCAP_FOUND}>:pcap::pcap>
45 ${WIN_IPHLPAPI_LIBRARY}
48 target_link_libraries(caputils PRIVATE ${GMODULE2_LIBRARIES})
51 set_target_properties(caputils PROPERTIES
52 LINK_FLAGS "${WS_LINK_FLAGS}"
55 set_target_properties(caputils PROPERTIES LINK_FLAGS_DEBUG "${WS_MSVC_DEBUG_LINK_FLAGS}")
63 set_source_files_properties(
66 COMPILE_FLAGS "${WERROR_COMMON_FLAGS}"
69 file(GLOB CAPCHILD_HEADERS capture_session.h)
71 add_library(capchild STATIC
75 target_link_libraries(capchild
78 $<$<BOOL:${PCAP_FOUND}>:pcap::pcap>
81 set_target_properties(capchild PROPERTIES
82 LINK_FLAGS "${WS_LINK_FLAGS}"
85 set_target_properties(capchild PROPERTIES LINK_FLAGS_DEBUG "${WS_MSVC_DEBUG_LINK_FLAGS}")
88 add_library(iface_monitor STATIC
93 target_link_libraries(iface_monitor
98 target_include_directories(iface_monitor SYSTEM
120 # Editor modelines - https://www.wireshark.org/tools/modelines.html
125 # indent-tabs-mode: t
128 # vi: set shiftwidth=8 tabstop=8 noexpandtab:
129 # :indentSize=8:tabSize=8:noTabs=false: