aboutsummaryrefslogtreecommitdiff
path: root/modules/FindUDev.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/FindUDev.cmake')
-rw-r--r--modules/FindUDev.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/FindUDev.cmake b/modules/FindUDev.cmake
new file mode 100644
index 00000000..dd25d63c
--- /dev/null
+++ b/modules/FindUDev.cmake
@@ -0,0 +1,19 @@
+# - Try to find UDev
+# Once done this will define
+#
+# UDEV_FOUND - system has UDev
+# UDEV_LIBS - The libraries needed to use UDev
+
+# Copyright (c) 2010, Rafael Fernández López, <ereslibre@kde.org>
+#
+# Redistribution and use is allowed according to the terms of the BSD license.
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+
+find_library(UDEV_LIBS udev)
+
+if(UDEV_LIBS)
+ set(UDEV_FOUND TRUE)
+endif(UDEV_LIBS)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(UDev DEFAULT_MSG UDEV_LIBRARY UDEV_INCLUDE_DIR)