HTTPS (almost) everywhere.
[metze/wireshark/wip.git] / capchild / CMakeLists.txt
1 # CMakeLists.txt
2
3 #
4 # Wireshark - Network traffic analyzer
5 # By Gerald Combs <gerald@wireshark.org>
6 # Copyright 1998 Gerald Combs
7 #
8 # SPDX-License-Identifier: GPL-2.0-or-later
9 #
10
11
12 set(CAPCHILD_SRC
13         capture_ifinfo.c
14         capture_sync.c
15 )
16
17 set_source_files_properties(
18         ${CAPCHILD_SRC}
19         PROPERTIES
20         COMPILE_FLAGS "${WERROR_COMMON_FLAGS}"
21 )
22
23 file(GLOB CAPCHILD_HEADERS capture_session.h)
24
25 add_library(capchild STATIC
26         ${CAPCHILD_SRC}
27 )
28
29 target_link_libraries(capchild
30         PRIVATE
31                 wsutil
32                 $<$<BOOL:${PCAP_FOUND}>:pcap::pcap>
33 )
34
35 set_target_properties(capchild PROPERTIES
36         LINK_FLAGS "${WS_LINK_FLAGS}"
37         FOLDER "Libs")
38
39 #
40 # Editor modelines  -  https://www.wireshark.org/tools/modelines.html
41 #
42 # Local variables:
43 # c-basic-offset: 8
44 # tab-width: 8
45 # indent-tabs-mode: t
46 # End:
47 #
48 # vi: set shiftwidth=8 tabstop=8 noexpandtab:
49 # :indentSize=8:tabSize=8:noTabs=false:
50 #