MSWSP: * add parse_lcid()
[wireshark-wip.git] / cmake / modules / FindAIRPCAP.cmake
blobbbba66a444eaf3b4120c9569a6e65f59b31e8415
2 # $Id$
4 # - Find airpcap
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
18   NAMES
19   airpcap.h
20   pcap.h
21   HINTS
22     "${AIRPCAP_HINTS}/include"
25 find_library( AIRPCAP_LIBRARY
26   NAMES
27     airpcap
28   HINTS
29     "${AIRPCAP_HINTS}/lib"
33 include( FindPackageHandleStandardArgs )
34 find_package_handle_standard_args( AIRPCAP DEFAULT_MSG AIRPCAP_INCLUDE_DIR AIRPCAP_LIBRARY )
36 if( AIRPCAP_FOUND )
37   set( AIRPCAP_INCLUDE_DIRS ${AIRPCAP_INCLUDE_DIR} )
38   set( AIRPCAP_LIBRARIES ${AIRPCAP_LIBRARY} )
39 else()
40   set( AIRPCAP_INCLUDE_DIRS )
41   set( AIRPCAP_LIBRARIES )
42 endif()
44 mark_as_advanced( AIRPCAP_LIBRARIES AIRPCAP_INCLUDE_DIRS )