diff options
author | Rafael Fernández López <ereslibre@kde.org> | 2010-10-03 12:40:46 +0000 |
---|---|---|
committer | Rafael Fernández López <ereslibre@kde.org> | 2010-10-03 12:40:46 +0000 |
commit | f6d17d9b7b044a3e2853580c9378ee07eb220324 (patch) | |
tree | 9a94fd52317ec4852e38c5caaf27225109d26da6 /modules | |
parent | 2640809ba84813a2be964926ee7c6cd15e6be7ad (diff) | |
download | extra-cmake-modules-f6d17d9b7b044a3e2853580c9378ee07eb220324.tar.gz extra-cmake-modules-f6d17d9b7b044a3e2853580c9378ee07eb220324.tar.bz2 |
Add UDev finder. Not passed through revision because we needed it for the Solid sprint. Please, if it is wrong
just tell me and I will take care of fixing it.
CCMAIL: kde-buildsystem@kde.org
svn path=/trunk/KDE/kdelibs/; revision=1182131
Diffstat (limited to 'modules')
-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) |