diff options
-rw-r--r-- | modules/CMakeLists.txt | 1 | ||||
-rw-r--r-- | modules/FindUDev.cmake | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index e5d0cd7a..da23d4a4 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -116,6 +116,7 @@ set(cmakeFiles CheckCXXSourceCompiles.cmake FindSqlite.cmake FindStrigi.cmake FindTaglib.cmake + FindUDev.cmake FindUSB.cmake FindWcecompat.cmake FindX11.cmake 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) |