3 # Find the native AIRPCAP includes and library
5 # AIRPCAP_INCLUDE_DIRS - where to find pcap.h, etc.
6 # AIRPCAP_LIBRARIES - List of libraries when using pcap.
7 # AIRPCAP_FOUND - True if pcap found.
9 include( FindWSWinLibs )
10 FindWSWinLibs( "AirPcap" AIRPCAP_TMP_HINTS )
11 #message( STATUS "AIRPCAP TMP HINTS: ${AIRPCAP_TMP_HINTS}" )
12 FindWSWinLibs( "Airpcap_" AIRPCAP_HINTS "${AIRPCAP_TMP_HINTS}" )
13 #message( STATUS "AIRPCAP HINTS: ${AIRPCAP_HINTS}" )
15 find_path( AIRPCAP_INCLUDE_DIR
20 "${AIRPCAP_HINTS}/include"
23 find_library( AIRPCAP_LIBRARY
27 "${AIRPCAP_HINTS}/lib"
31 include( FindPackageHandleStandardArgs )
32 find_package_handle_standard_args( AIRPCAP DEFAULT_MSG AIRPCAP_INCLUDE_DIR AIRPCAP_LIBRARY )
35 set( AIRPCAP_INCLUDE_DIRS ${AIRPCAP_INCLUDE_DIR} )
36 set( AIRPCAP_LIBRARIES ${AIRPCAP_LIBRARY} )
38 set( AIRPCAP_INCLUDE_DIRS )
39 set( AIRPCAP_LIBRARIES )
42 mark_as_advanced( AIRPCAP_LIBRARIES AIRPCAP_INCLUDE_DIRS )