diff options
Diffstat (limited to 'project/cmake/modules/FindUDev.cmake')
| -rw-r--r-- | project/cmake/modules/FindUDev.cmake | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/project/cmake/modules/FindUDev.cmake b/project/cmake/modules/FindUDev.cmake deleted file mode 100644 index 97fa956..0000000 --- a/project/cmake/modules/FindUDev.cmake +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | # - Try to find udev | ||
| 2 | # Once done this will define | ||
| 3 | # | ||
| 4 | # UDEV_FOUND - system has libudev | ||
| 5 | # UDEV_INCLUDE_DIRS - the libudev include directory | ||
| 6 | # UDEV_LIBRARIES - The libudev libraries | ||
| 7 | |||
| 8 | if(PKG_CONFIG_FOUND) | ||
| 9 | pkg_check_modules (UDEV libudev) | ||
| 10 | list(APPEND UDEV_INCLUDE_DIRS ${UDEV_INCLUDEDIR}) | ||
| 11 | endif() | ||
| 12 | |||
| 13 | if(NOT UDEV_FOUND) | ||
| 14 | find_path(UDEV_INCLUDE_DIRS libudev.h) | ||
| 15 | find_library(UDEV_LIBRARIES udev) | ||
| 16 | endif() | ||
| 17 | |||
| 18 | include(FindPackageHandleStandardArgs) | ||
| 19 | find_package_handle_standard_args(UDev DEFAULT_MSG UDEV_INCLUDE_DIRS UDEV_LIBRARIES) | ||
| 20 | |||
| 21 | mark_as_advanced(UDEV_INCLUDE_DIRS UDEV_LIBRARIES) | ||
| 22 | list(APPEND UDEV_DEFINITIONS -DHAVE_LIBUDEV=1) | ||
