5 # Find the native AIRPCAP includes and library
7 # AIRPCAP_INCLUDE_DIRS - where to find pcap.h, etc.
8 # AIRPCAP_LIBRARIES - List of libraries when using pcap.
9 # AIRPCAP_FOUND - True if pcap found.
11 include( FindWSWinLibs )
12 FindWSWinLibs( "AirPcap" AIRPCAP_TMP_HINTS )
13 #message( STATUS "AIRPCAP TMP HINTS: ${AIRPCAP_TMP_HINTS}" )
14 FindWSWinLibs( "Airpcap_" AIRPCAP_HINTS "${AIRPCAP_TMP_HINTS}" )
15 #message( STATUS "AIRPCAP HINTS: ${AIRPCAP_HINTS}" )
17 find_path( AIRPCAP_INCLUDE_DIR
22 "${AIRPCAP_HINTS}/include"
25 find_library( AIRPCAP_LIBRARY
29 "${AIRPCAP_HINTS}/lib"
33 include( FindPackageHandleStandardArgs )
34 find_package_handle_standard_args( AIRPCAP DEFAULT_MSG AIRPCAP_INCLUDE_DIR AIRPCAP_LIBRARY )
37 set( AIRPCAP_INCLUDE_DIRS ${AIRPCAP_INCLUDE_DIR} )
38 set( AIRPCAP_LIBRARIES ${AIRPCAP_LIBRARY} )
40 set( AIRPCAP_INCLUDE_DIRS )
41 set( AIRPCAP_LIBRARIES )
44 mark_as_advanced( AIRPCAP_LIBRARIES AIRPCAP_INCLUDE_DIRS )