1 # - Find OpenLDAP C Libraries
3 # OPENLDAP_FOUND - True if found.
4 # OPENLDAP_INCLUDE_DIR - Path to the openldap include directory
5 # OPENLDAP_LIBRARIES - Paths to the ldap and lber libraries
7 find_path(OPENLDAP_INCLUDE_DIR ldap.h PATHS
12 find_library(LDAP_LIBRARY ldap)
13 find_library(LBER_LIBRARY lber)
15 include(FindPackageHandleStandardArgs)
16 find_package_handle_standard_args(OpenLdap DEFAULT_MSG
17 OPENLDAP_INCLUDE_DIR LDAP_LIBRARY LBER_LIBRARY)
19 set(OPENLDAP_LIBRARIES ${LDAP_LIBRARY} ${LBER_LIBRARY})
22 OPENLDAP_INCLUDE_DIR LDAP_LIBRARY LBER_LIBRARY)