diff options
author | Laurent Montel <montel@kde.org> | 2006-03-09 09:33:43 +0000 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2006-03-09 09:33:43 +0000 |
commit | 3c808b6e38193b9c679ecdd02d93eded036d889f (patch) | |
tree | a1ce2b96de7d188eec7cd875e64e6a364900b439 | |
parent | 54f2c4a9098fa5f215e5bf664130cb676763f042 (diff) | |
download | extra-cmake-modules-3c808b6e38193b9c679ecdd02d93eded036d889f.tar.gz extra-cmake-modules-3c808b6e38193b9c679ecdd02d93eded036d889f.tar.bz2 |
Move here (need by kdepim too)
svn path=/trunk/KDE/kdelibs/; revision=516932
-rw-r--r-- | modules/FindSasl2.cmake | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/FindSasl2.cmake b/modules/FindSasl2.cmake new file mode 100644 index 00000000..4684735c --- /dev/null +++ b/modules/FindSasl2.cmake @@ -0,0 +1,32 @@ +# - Try to find the sasl2 directory library +# Once done this will define +# +# SASL2_FOUND - system has SASL2 +# SASL2_INCLUDE_DIR - the SASL2 include directory +# SASL2_LIBRARIES - The libraries needed to use SASL2 + +FIND_PATH(SASL2_INCLUDE_DIR sasl/sasl.h + /usr/include + /usr/local/include +) + +FIND_LIBRARY(SASL2_LIBRARIES NAMES sasl2 + PATHS + /usr/lib + /usr/local/lib +) + + +if(SASL2_INCLUDE_DIR AND SASL2_LIBRARIES) + set(SASL2_FOUND TRUE) +endif(SASL2_INCLUDE_DIR AND SASL2_LIBRARIES) + + +if(SASL2_FOUND) + if(NOT SASL2_FIND_QUIETLY) + message(STATUS "Found sasl2: ${SASL2_LIBRARIES}") + endif(NOT SASL2_FIND_QUIETLY) +endif(SASL2_FOUND) + +MARK_AS_ADVANCED(SASL2_INCLUDE_DIR SASL2_LIBRARIES) + |