~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to cmake/modules/FindPCIUTILS.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# - Try to find the pciutils directory library
 
2
# Once done this will define
 
3
#
 
4
#  PCIUTILS_FOUND - system has PCIUtils
 
5
#  PCIUTILS_INCLUDE_DIR - the PCIUTILS include directory
 
6
#  PCIUTILS_LIBRARIES - The libraries needed to use PCIUtils
 
7
 
 
8
if(PCIUTILS_INCLUDE_DIR AND PCIUTILS_LIBRARIES)
 
9
   set(PCIUTILS_FIND_QUIETLY TRUE)
 
10
endif(PCIUTILS_INCLUDE_DIR AND PCIUTILS_LIBRARIES)
 
11
 
 
12
FIND_PATH(PCIUTILS_INCLUDE_DIR pci/pci.h)
 
13
 
 
14
FIND_LIBRARY(PCIUTILS_LIBRARY NAMES pci)
 
15
if(PCIUTILS_LIBRARY)
 
16
  FIND_LIBRARY(RESOLV_LIBRARY NAMES resolv)
 
17
  if(RESOLV_LIBRARY)
 
18
    set(PCIUTILS_LIBRARIES ${PCIUTILS_LIBRARY} ${RESOLV_LIBRARY})
 
19
  else(RESOLV_LIBRARY)
 
20
    set(PCIUTILS_LIBRARIES ${PCIUTILS_LIBRARY})
 
21
  endif(RESOLV_LIBRARY)
 
22
endif(PCIUTILS_LIBRARY)
 
23
 
 
24
 
 
25
include(FindPackageHandleStandardArgs)
 
26
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCIUTILS DEFAULT_MSG PCIUTILS_LIBRARIES PCIUTILS_INCLUDE_DIR)
 
27
 
 
28
MARK_AS_ADVANCED(PCIUTILS_INCLUDE_DIR PCIUTILS_LIBRARIES)
 
29