From 17e764ce49ccb48f65bae740fbf0370e9d869b2b Mon Sep 17 00:00:00 2001 From: omcal Date: Sun, 17 Mar 2024 22:09:04 +0300 Subject: [PATCH] read-writer queue added into CMake --- CMakeLists.txt | 12 ++++++++++++ README.md | 1 + 2 files changed, 13 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1849c3b..c61443f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,18 @@ include(FetchContent) project(serverless-rdma) set (CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/cmake") +FetchContent_Declare( + readerwriterqueue + GIT_REPOSITORY https://github.com/cameron314/readerwriterqueue + GIT_TAG master +) +FetchContent_Declare( + pistache + GIT_REPOSITORY https://github.com/pistacheio/pistache + GIT_TAG master # It's better to use a specific release tag +) +FetchContent_MakeAvailable(readerwriterqueue pistache) + set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED TRUE) diff --git a/README.md b/README.md index 20acd12..fcf099a 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ its `ugni` provider. - `libibverbs` with headers installed. - `librdmacm` with headers installed. - [pistache](https://github.com/pistacheio/pistache) - HTTP and REST framework. +- [readerwriterqueue](https://github.com/cameron314/readerwriterqueue) - Lock-free queue or C++ Furthermore, we fetch and build the following dependencies during CMake build - unless they are found already in the system.