1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 16:57:16 +01:00
SqMod/module/Vendor/MDBC/plugins/auth/CMakeLists.txt
2020-03-22 14:54:40 +02:00

45 lines
1.6 KiB
CMake

INCLUDE_DIRECTORIES(${CC_SOURCE_DIR}/include)
# Dialog plugin
SET(DIALOG_SOURCES dialog.c ${CC_SOURCE_DIR}/libmariadb/get_password.c)
IF(WIN32)
SET_VERSION_INFO("TARGET:dialog"
"FILE_TYPE:VFT_DLL"
"SOURCE_FILE:plugins/auth/dialog.c"
"ORIGINAL_FILE_NAME:dialog.dll"
"FILE_DESCRIPTION:Authentication plugin")
SET(DIALOG_SOURCES ${DIALOG_SOURCES} ${CC_SOURCE_DIR}/plugins/plugin.def)
ENDIF()
ADD_LIBRARY(dialog SHARED ${dialog_RC} ${DIALOG_SOURCES})
SET_TARGET_PROPERTIES(dialog PROPERTIES PREFIX "")
SIGN_TARGET(dialog)
INSTALL(TARGETS
dialog
RUNTIME DESTINATION "${PLUGIN_INSTALL_DIR}"
LIBRARY DESTINATION "${PLUGIN_INSTALL_DIR}"
ARCHIVE DESTINATION "${PLUGIN_INSTALL_DIR}")
# Cleartext
# Dialog plugin
SET(CTEXT_SOURCES mariadb_cleartext.c)
IF(WIN32)
SET_VERSION_INFO("TARGET:mysql_clear_password"
"FILE_TYPE:VFT_DLL"
"SOURCE_FILE:plugins/auth/mariadb_cleartext.c"
"ORIGINAL_FILE_NAME:mysql_clear_password.dll"
"FILE_DESCRIPTION:Authentication plugin")
SET(CTEXT_SOURCES ${CTEXT_SOURCES} ${CC_SOURCE_DIR}/plugins/plugin.def)
ENDIF()
ADD_LIBRARY(mysql_clear_password SHARED ${mysql_clear_password_RC} ${CTEXT_SOURCES})
SET_TARGET_PROPERTIES(mysql_clear_password PROPERTIES PREFIX "")
SIGN_TARGET(mysql_clear_password)
INSTALL(TARGETS
mysql_clear_password
RUNTIME DESTINATION "${PLUGIN_INSTALL_DIR}"
LIBRARY DESTINATION "${PLUGIN_INSTALL_DIR}"
ARCHIVE DESTINATION "${PLUGIN_INSTALL_DIR}")
# Cleartext