FindLIBUDEV.cmake 767 B

1234567891011121314151617181920212223242526272829
  1. # - Try to find LIBUDEV
  2. # Once done this will define
  3. # LIBUDEV_FOUND - System has LIBUDEV
  4. # LIBUDEV_INCLUDE_DIRS - The LIBUDEV include directories
  5. # LIBUDEV_LIBRARIES - The libraries needed to use LIBUDEV
  6. FIND_PATH(
  7. LIBUDEV_INCLUDE_DIR libudev.h
  8. /usr/include
  9. /usr/local/include
  10. ${LIBUDEV_PATH_INCLUDES}
  11. )
  12. FIND_LIBRARY(
  13. LIBUDEV_LIBRARY
  14. NAMES udev libudev
  15. PATHS ${ADDITIONAL_LIBRARY_PATHS}
  16. ${LIBUDEV_PATH_LIB}
  17. )
  18. set(LIBUDEV_LIBRARIES ${LIBUDEV_LIBRARY} )
  19. set(LIBUDEV_INCLUDE_DIRS ${LIBUDEV_INCLUDE_DIR} )
  20. include(FindPackageHandleStandardArgs)
  21. find_package_handle_standard_args(LIBUDEV DEFAULT_MSG
  22. LIBUDEV_LIBRARY LIBUDEV_INCLUDE_DIR)
  23. mark_as_advanced(LIBUDEV_INCLUDE_DIR LIBUDEV_LIBRARY )