From bd76fb08040aab9d9871a2c47078b848187a0bbd Mon Sep 17 00:00:00 2001 From: Tyler Rockwood Date: Tue, 17 Sep 2024 19:55:27 +0000 Subject: [PATCH] cmake: add serde/protobuf to cmake I initially built this in Bazel only and forgot to add a CMake build so it's actually usable. --- src/v/serde/CMakeLists.txt | 1 + src/v/serde/protobuf/CMakeLists.txt | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 src/v/serde/protobuf/CMakeLists.txt diff --git a/src/v/serde/CMakeLists.txt b/src/v/serde/CMakeLists.txt index 222a1ca3f65e3..9a19b2fa81b74 100644 --- a/src/v/serde/CMakeLists.txt +++ b/src/v/serde/CMakeLists.txt @@ -9,4 +9,5 @@ v_cc_library( absl::flat_hash_map v::compression ) +add_subdirectory(protobuf) add_subdirectory(test) diff --git a/src/v/serde/protobuf/CMakeLists.txt b/src/v/serde/protobuf/CMakeLists.txt new file mode 100644 index 0000000000000..1df0e397f9d86 --- /dev/null +++ b/src/v/serde/protobuf/CMakeLists.txt @@ -0,0 +1,13 @@ +find_package(Protobuf REQUIRED) + +v_cc_library( + NAME serde_protobuf + SRCS + parser.cc + DEPS + Seastar::seastar + v::bytes + v::container + v::utils + protobuf::libprotobuf + )