diff options
Diffstat (limited to 'libmariadb/plugins/compress/CMakeLists.txt')
-rw-r--r-- | libmariadb/plugins/compress/CMakeLists.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libmariadb/plugins/compress/CMakeLists.txt b/libmariadb/plugins/compress/CMakeLists.txt new file mode 100644 index 00000000..f6dab85d --- /dev/null +++ b/libmariadb/plugins/compress/CMakeLists.txt @@ -0,0 +1,23 @@ +SET(COMPRESS_PLUGIN_DIR ${CC_SOURCE_DIR}/plugins/compress) + +INCLUDE_DIRECTORIES(${COMPRESS_PLUGIN_DIR}) +INCLUDE_DIRECTORIES(${CC_SOURCE_DIR}/include) + +#zlib compression + +REGISTER_PLUGIN(TARGET zlib + TYPE MARIADB_CLIENT_COMPRESSION_PLUGIN + CONFIGURATIONS STATIC + DEFAULT STATIC + SOURCES ${COMPRESS_PLUGIN_DIR}/c_zlib.c) + +#zstd compression +IF(${ZSTD_FOUND}) + INCLUDE_DIRECTORIES(${ZSTD_INCLUDE_DIRS}) + REGISTER_PLUGIN(TARGET zstd + TYPE MARIADB_CLIENT_COMPRESSION_PLUGIN + CONFIGURATIONS DYNAMIC STATIC OFF + DEFAULT DYNAMIC + SOURCES ${COMPRESS_PLUGIN_DIR}/c_zstd.c + LIBRARIES ${ZSTD_LIBRARIES}) +ENDIF() |