]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # - Find OpenLDAP C Libraries |
2 | # | |
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 | |
6 | ||
7 | find_path(OPENLDAP_INCLUDE_DIR ldap.h PATHS | |
8 | /usr/include | |
9 | /opt/local/include | |
10 | /usr/local/include) | |
11 | ||
12 | find_library(LDAP_LIBRARY ldap) | |
13 | find_library(LBER_LIBRARY lber) | |
14 | ||
15 | include(FindPackageHandleStandardArgs) | |
16 | find_package_handle_standard_args(OpenLdap DEFAULT_MSG | |
17 | OPENLDAP_INCLUDE_DIR LDAP_LIBRARY LBER_LIBRARY) | |
18 | ||
19 | set(OPENLDAP_LIBRARIES ${LDAP_LIBRARY} ${LBER_LIBRARY}) | |
20 | ||
21 | mark_as_advanced( | |
22 | OPENLDAP_INCLUDE_DIR LDAP_LIBRARY LBER_LIBRARY) |