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