1 # Copyright (c) 2014, 2015 InternetWide.org and the ARPA2.net project
2 # All rights reserved. See file LICENSE for exact terms (2-clause BSD license).
4 # Adriaan de Groot <groot@kde.org>
6 # Try to find OpenLDAP client libraries. Sets standard variables
7 # OpenLDAP_LIBRARIES and OpenLDAP_INCLUDE_DIRS.
9 include(FindPackageHandleStandardArgs)
11 find_library(_LDAP ldap)
13 set(OpenLDAP_LIBRARIES ${_LDAP})
16 find_library(_LBER lber)
18 set(OpenLDAP_BER_LIBRARIES ${_LBER})
21 find_path(OpenLDAP_INCLUDE_DIRS ldap.h)
23 find_package_handle_standard_args(OpenLDAP
24 REQUIRED_VARS OpenLDAP_LIBRARIES OpenLDAP_INCLUDE_DIRS)