mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
326b475beb
Some checks failed
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
23 lines
551 B
CMake
23 lines
551 B
CMake
# - Try to find libpcap
|
|
#
|
|
# Once done this will define
|
|
# PCAP_FOUND - System has libpcap
|
|
# PCAP_INCLUDE_DIRS - The libpcap include directories
|
|
# PCAP_LIBRARIES - The libpcap library
|
|
|
|
# Find libpcap
|
|
FIND_PATH(
|
|
PCAP_INCLUDE_DIRS
|
|
NAMES pcap.h
|
|
)
|
|
|
|
FIND_LIBRARY(
|
|
PCAP_LIBRARIES
|
|
NAMES pcap
|
|
)
|
|
|
|
message(STATUS "PCAP LIBRARIES: " ${PCAP_LIBRARIES})
|
|
message(STATUS "PCAP INCLUDE DIRS: " ${PCAP_INCLUDE_DIRS})
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCAP DEFAULT_MSG PCAP_LIBRARIES PCAP_INCLUDE_DIRS) |