delay a few things on startup, such as setting the visibility mode, which ensures...
[personal-kdebase.git] / apps / cmake / modules / FindPCIUTILS.cmake
blobc220a878ac5a4611992d526fb3b5b2760fd60ded
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)
15 if(PCIUTILS_LIBRARY)
16   FIND_LIBRARY(RESOLV_LIBRARY NAMES resolv)
17   set(PCIUTILS_LIBRARIES ${PCIUTILS_LIBRARY} ${RESOLV_LIBRARY})
18 endif(PCIUTILS_LIBRARY)
21 include(FindPackageHandleStandardArgs)
22 FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCIUTILS DEFAULT_MSG PCIUTILS_LIBRARIES PCIUTILS_INCLUDE_DIR)
24 MARK_AS_ADVANCED(PCIUTILS_INCLUDE_DIR PCIUTILS_LIBRARIES)