Lines Matching refs:pcap
6 # lib subdirectories for pcap.dll (e.g WpdPack or npcap-sdk).
8 # (e.g cmake -DPCAP_ROOT=C:\path\to\pcap [...])
15 # libpcap isn't set up to install .pc files or pcap-config on Windows,
20 # So just search for them directly. Look for both pcap and wpcap.
30 find_path(PCAP_INCLUDE_DIR pcap.h)
45 find_library(PCAP_LIBRARY NAMES pcap wpcap)
185 # That didn't work. Try pcap-config.
187 find_program(PCAP_CONFIG pcap-config)
190 # We have pcap-config; use it.
193 message(STATUS "Found pcap-config")
197 # If this is a vendor-supplied pcap-config, which we define as
198 # being "a pcap-config in /usr/bin or /usr/ccs/bin" (the latter
202 if("${PCAP_CONFIG}" STREQUAL /usr/bin/pcap-config OR
203 "${PCAP_CONFIG}" STREQUAL /usr/ccs/bin/pcap-config)
211 # That means that /usr/bin/pcap-config it may provide
213 # with --libs; if there's no pcap installed under /usr/local,
214 # that will cause the build to fail, and if there is a pcap
215 # installed there, you'll get that pcap even if you don't
223 # At least on Solaris 11; there's /usr/bin/pcap-config, which
225 # to be found, and there's /usr/bin/{64bitarch}/pcap-config,
259 message(FATAL_ERROR "pcap-config --cflags failed")
272 # Apple pcap-config.
291 message(FATAL_ERROR "pcap-config --libs failed")
305 # Apple pcap-config.
326 message(FATAL_ERROR "pcap-config --libs --static failed")
340 # Apple pcap-config.
367 # pcap-config; we need to convert library names to library full paths.
411 # We found libpcap using pkg-config or pcap-config.
426 find_path(PCAP_INCLUDE_DIR pcap.h)
431 find_library(PCAP_LIBRARY pcap)
436 find_library(PCAP_STATIC_LIBRARY pcap)