diff options
Diffstat (limited to 'plugin/hashicorp_key_management/CMakeLists.txt')
-rw-r--r-- | plugin/hashicorp_key_management/CMakeLists.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugin/hashicorp_key_management/CMakeLists.txt b/plugin/hashicorp_key_management/CMakeLists.txt new file mode 100644 index 00000000..bd1eee84 --- /dev/null +++ b/plugin/hashicorp_key_management/CMakeLists.txt @@ -0,0 +1,23 @@ +INCLUDE(FindCURL) +IF(NOT CURL_FOUND) + # Can't build plugin + RETURN() +ENDIF() + +INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIR}) + +set(CPACK_RPM_hashicorp-key-management_PACKAGE_SUMMARY "Hashicorp Key Management plugin for MariaDB" PARENT_SCOPE) +set(CPACK_RPM_hashicorp-key-management_PACKAGE_DESCRIPTION "This encryption plugin uses Hashicorp Vault for storing encryption + keys for MariaDB Data-at-Rest encryption." PARENT_SCOPE) + +MYSQL_ADD_PLUGIN(HASHICORP_KEY_MANAGEMENT + hashicorp_key_management_plugin.cc + LINK_LIBRARIES ${CURL_LIBRARIES} + CONFIG hashicorp_key_management.cnf + COMPONENT hashicorp-key-management + MODULE_ONLY) + +ADD_FEATURE_INFO(HASHICORP_KEY_MANAGEMENT "ON" "Hashicorp Key Management Plugin") + +INSTALL_DOCUMENTATION(hashicorp_key_management.txt + COMPONENT plugin-hashicorp-key-management) |