From 8e3002bfbb80169a596053396fcf0ecea181d0f4 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 31 Jul 2014 19:02:50 +0200 Subject: [PATCH] Add FindCrypt in the users module. --- .../users/CMakeModules/FindCrypt.cmake | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/modules/users/CMakeModules/FindCrypt.cmake diff --git a/src/modules/users/CMakeModules/FindCrypt.cmake b/src/modules/users/CMakeModules/FindCrypt.cmake new file mode 100644 index 000000000..293228e6f --- /dev/null +++ b/src/modules/users/CMakeModules/FindCrypt.cmake @@ -0,0 +1,23 @@ +# - Find libcrypt +# Find the libcrypt includes and the libcrypt libraries +# This module defines +# LIBCRYPT_INCLUDE_DIR, root crypt include dir. Include crypt with crypt.h +# LIBCRYPT_LIBRARY, the path to libcrypt +# LIBCRYPT_FOUND, whether libcrypt was found + + +find_path( CRYPT_INCLUDE_DIR NAMES crypt.h + HINTS + ${CMAKE_INSTALL_INCLUDEDIR} +) + +find_library( CRYPT_LIBRARIES NAMES crypt + HINTS + ${CMAKE_INSTALL_LIBDIR} +) + +include( FindPackageHandleStandardArgs ) +find_package_handle_standard_args( Crypt + REQUIRED_VARS CRYPT_LIBRARIES CRYPT_INCLUDE_DIR ) + +mark_as_advanced( CRYPT_INCLUDE_DIR CRYPT_LIBRARIES )