You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-09-18 06:47:43 +03:00
Plugin configuration happens now in CMakeLists.txt files in corresponding plugin directories. plugins.cmake now contains REGISTER_PLUGIN_FUNCTION which accepts the following parameters: - TARGET: the name of the plugin (dynamic plugins will be named ${TARGET}.so (or .dll) - SOURCES: source files - LIBRARIES: additional libraries for linking - INCLUDES: include directories - CONFIGURATIONS: possible plugin configurations: valid arguments are DYNAMIC, STATIC, OFF - DEFAULT: default configuration (see CONFIGURATIONS) - COMPILE_OPTIONS: compiler flags The default plugin configuration can be specified via cmake parameter -DCLIENT_PLUGIN_${TARGET}=[DYNAMIC|STATIC|OFF]
10 lines
238 B
CMake
10 lines
238 B
CMake
SET(PLUGIN_EXTRA_FILES ${CC_SOURCE_DIR}/libmariadb/ma_errmsg.c)
|
|
|
|
|
|
FILE(GLOB plugin_dirs ${CC_SOURCE_DIR}/plugins/*)
|
|
FOREACH(dir ${plugin_dirs})
|
|
IF (EXISTS ${dir}/CMakeLists.txt)
|
|
INCLUDE(${dir}/CMakeLists.txt)
|
|
ENDIF()
|
|
ENDFOREACH()
|