add_subdirectory(MySQLAuth) add_library(MySQLBackendAuth SHARED mysql_backend_auth.c) target_link_libraries(MySQLBackendAuth maxscale-common MySQLCommon) set_target_properties(MySQLBackendAuth PROPERTIES VERSION "1.0.0") install_module(MySQLBackendAuth core) if (GSSAPI_FOUND AND SQLITE_FOUND) if (NOT SQLITE_VERSION VERSION_LESS "3.7.7") include_directories(${GSSAPI_INCS}) include_directories(${SQLITE_INCLUDE_DIR}) add_library(GSSAPIAuth SHARED gssapi_auth.c gssapi_auth_common.c) target_link_libraries(GSSAPIAuth maxscale-common ${GSSAPI_LIBS} ${SQLITE_LIBRARIES} MySQLCommon) set_target_properties(GSSAPIAuth PROPERTIES VERSION "1.0.0") install_module(GSSAPIAuth core) add_library(GSSAPIBackendAuth SHARED gssapi_backend_auth.c gssapi_auth_common.c) target_link_libraries(GSSAPIBackendAuth maxscale-common ${GSSAPI_LIBS} MySQLCommon) set_target_properties(GSSAPIBackendAuth PROPERTIES VERSION "1.0.0") install_module(GSSAPIBackendAuth core) else() message(STATUS "Minimum requires SQLite version for GSSAPIAuth is 3.7.7, current SQLite version is ${SQLITE_VERSION}") endif() endif() add_library(NullAuthAllow SHARED null_auth_allow.c) target_link_libraries(NullAuthAllow maxscale-common) set_target_properties(NullAuthAllow PROPERTIES VERSION "1.0.0") install_module(NullAuthAllow core) add_library(NullAuthDeny SHARED null_auth_deny.c) target_link_libraries(NullAuthDeny maxscale-common) set_target_properties(NullAuthDeny PROPERTIES VERSION "1.0.0") install_module(NullAuthDeny core) add_library(MaxAdminAuth SHARED max_admin_auth.c) target_link_libraries(MaxAdminAuth maxscale-common) set_target_properties(MaxAdminAuth PROPERTIES VERSION "1.0.0") install_module(MaxAdminAuth core) add_library(HTTPAuth SHARED http_auth.c) target_link_libraries(HTTPAuth maxscale-common) set_target_properties(HTTPAuth PROPERTIES VERSION "1.0.0") install_module(HTTPAuth core) # if(BUILD_TESTS) # add_library(testprotocol SHARED testprotocol.c) # set_target_properties(testprotocol PROPERTIES VERSION "1.0.0") # target_link_libraries(testprotocol maxscale-common) # install_module(testprotocol core) # endif() if(BUILD_CDC) add_library(CDCPlainAuth SHARED cdc_plain_auth.c) target_link_libraries(CDCPlainAuth maxscale-common) set_target_properties(CDCPlainAuth PROPERTIES VERSION "1.0.0") install_module(CDCPlainAuth core) endif()