2 # Find the PCAP includes and library
4 # PCAP_INCLUDE_DIR - where to find pcap.h, etc.
5 # PCAP_LIBRARIES - List of libraries when using pcap.
6 # PCAP_FOUND - True if pcap found.
8 FIND_PATH(PCAP_INCLUDE_DIR pcap.h
13 FIND_LIBRARY(PCAP_LIBRARIES
15 PATHS /usr/lib /usr/local/lib
20 SET( PCAP_FOUND "YES" )
22 ENDIF(PCAP_INCLUDE_DIR)