|
@@ -1,3 +1,7 @@
|
|
|
|
+file(GLOB MODULE_SOURCES "*.c")
|
|
|
|
+
|
|
|
|
+add_library(${module_name} SHARED ${MODULE_SOURCES})
|
|
|
|
+
|
|
# libsasl2-dev is required for LDAP support
|
|
# libsasl2-dev is required for LDAP support
|
|
find_package(PkgConfig REQUIRED)
|
|
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(libsasl2 REQUIRED IMPORTED_TARGET libsasl2)
|
|
pkg_check_modules(libsasl2 REQUIRED IMPORTED_TARGET libsasl2)
|
|
@@ -6,10 +10,8 @@ add_library(libsasl2::libsasl2 ALIAS PkgConfig::libsasl2)
|
|
# libldap-2.4-2 is required for LDAP support
|
|
# libldap-2.4-2 is required for LDAP support
|
|
find_package(Ldap REQUIRED)
|
|
find_package(Ldap REQUIRED)
|
|
|
|
|
|
-file(GLOB SRC_FILES "*.c")
|
|
|
|
-
|
|
|
|
-add_library(db2_ldap SHARED ${SRC_FILES})
|
|
|
|
# LDAP_DEPRECATED is required for LDAP support else it will throw compile error
|
|
# LDAP_DEPRECATED is required for LDAP support else it will throw compile error
|
|
-target_compile_definitions(db2_ldap PRIVATE LDAP_DEPRECATED)
|
|
|
|
-target_include_directories(db2_ldap PRIVATE ${Ldap_INCLUDE_DIRS})
|
|
|
|
-target_link_libraries(db2_ldap PRIVATE ${LDAP_LIBRARIES} libsasl2::libsasl2)
|
|
|
|
|
|
+target_compile_definitions(${module_name} PRIVATE LDAP_DEPRECATED)
|
|
|
|
+target_include_directories(${module_name} PRIVATE ${Ldap_INCLUDE_DIRS})
|
|
|
|
+target_link_libraries(${module_name} PRIVATE ${LDAP_LIBRARIES}
|
|
|
|
+ libsasl2::libsasl2)
|