diff --git a/CMakeLists.txt b/CMakeLists.txt index b6df272..7ae1216 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,10 @@ set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) add_subdirectory(src) + +set(GOOGLETEST_VERSION 1.10.0) add_subdirectory(3rdparty/gtest) add_subdirectory(test) + add_subdirectory(demo/chat) add_subdirectory(demo/msg_que) diff --git a/demo/msg_que/main.cpp b/demo/msg_que/main.cpp index 95d94aa..2c19e76 100644 --- a/demo/msg_que/main.cpp +++ b/demo/msg_que/main.cpp @@ -27,7 +27,10 @@ using msg_que_t = ipc::chan rand__{ min_sz, max_sz }; +capo::random<> rand__{ + static_cast(min_sz), + static_cast(max_sz) +}; inline std::string str_of_size(std::size_t sz) noexcept { if (sz > 1024 * 1024) {