Ddavidhan008Add: cppzmq
2e2ad919创建于 2023年6月1日历史提交
diff -Naur cppzmq-4.9.0_org/tests/buffer.cpp cppzmq-4.9.0/tests/buffer.cpp
--- cppzmq-4.9.0_org/tests/buffer.cpp	2023-04-28 20:39:19.847637133 +0800
+++ cppzmq-4.9.0/tests/buffer.cpp	2023-04-28 20:40:22.307761489 +0800
@@ -1,4 +1,4 @@
-#include <catch2/catch.hpp>
+#include <catch2/catch_all.hpp>
 #include <zmq.hpp>
 
 #ifdef ZMQ_CPP17
diff -Naur cppzmq-4.9.0_org/tests/CMakeLists.txt cppzmq-4.9.0/tests/CMakeLists.txt
--- cppzmq-4.9.0_org/tests/CMakeLists.txt	2023-04-28 20:39:19.847637133 +0800
+++ cppzmq-4.9.0/tests/CMakeLists.txt	2023-04-28 22:46:00.142119663 +0800
@@ -35,7 +35,7 @@
 target_include_directories(unit_tests PUBLIC ${CATCH_MODULE_PATH})
 target_link_libraries(
     unit_tests
-    PRIVATE Catch2::Catch2
+    PRIVATE Catch2::Catch2WithMain
     PRIVATE cppzmq
     PRIVATE ${CMAKE_THREAD_LIBS_INIT}
 )
diff -Naur cppzmq-4.9.0_org/tests/codec_multipart.cpp cppzmq-4.9.0/tests/codec_multipart.cpp
--- cppzmq-4.9.0_org/tests/codec_multipart.cpp	2023-04-28 20:39:19.847637133 +0800
+++ cppzmq-4.9.0/tests/codec_multipart.cpp	2023-04-28 20:40:22.306761487 +0800
@@ -1,4 +1,4 @@
-#include <catch2/catch.hpp>
+#include <catch2/catch_all.hpp>
 #include <zmq_addon.hpp>
 
 #ifdef ZMQ_CPP11
diff -Naur cppzmq-4.9.0_org/tests/context.cpp cppzmq-4.9.0/tests/context.cpp
--- cppzmq-4.9.0_org/tests/context.cpp	2023-04-28 20:39:19.847637133 +0800
+++ cppzmq-4.9.0/tests/context.cpp	2023-04-28 20:40:22.308761491 +0800
@@ -1,4 +1,4 @@
-#include <catch2/catch.hpp>
+#include <catch2/catch_all.hpp>
 #include <zmq.hpp>
 
 #if (__cplusplus >= 201703L)
diff -Naur cppzmq-4.9.0_org/tests/message.cpp cppzmq-4.9.0/tests/message.cpp
--- cppzmq-4.9.0_org/tests/message.cpp	2023-04-28 20:39:19.847637133 +0800
+++ cppzmq-4.9.0/tests/message.cpp	2023-04-28 20:40:22.308761491 +0800
@@ -1,5 +1,5 @@
 #define CATCH_CONFIG_MAIN
-#include <catch2/catch.hpp>
+#include <catch2/catch_all.hpp>
 #include <zmq.hpp>
 
 #if defined(ZMQ_CPP11)
diff -Naur cppzmq-4.9.0_org/tests/multipart.cpp cppzmq-4.9.0/tests/multipart.cpp
--- cppzmq-4.9.0_org/tests/multipart.cpp	2023-04-28 20:39:19.847637133 +0800
+++ cppzmq-4.9.0/tests/multipart.cpp	2023-04-28 20:40:22.307761489 +0800
@@ -1,4 +1,4 @@
-#include <catch2/catch.hpp>
+#include <catch2/catch_all.hpp>
 #include <zmq_addon.hpp>
 
 #ifdef ZMQ_HAS_RVALUE_REFS
diff -Naur cppzmq-4.9.0_org/tests/recv_multipart.cpp cppzmq-4.9.0/tests/recv_multipart.cpp
--- cppzmq-4.9.0_org/tests/recv_multipart.cpp	2023-04-28 20:39:19.847637133 +0800
+++ cppzmq-4.9.0/tests/recv_multipart.cpp	2023-04-28 20:40:22.306761487 +0800
@@ -1,4 +1,4 @@
-#include <catch2/catch.hpp>
+#include <catch2/catch_all.hpp>
 #include <zmq_addon.hpp>
 #ifdef ZMQ_CPP11
 
diff -Naur cppzmq-4.9.0_org/tests/send_multipart.cpp cppzmq-4.9.0/tests/send_multipart.cpp
--- cppzmq-4.9.0_org/tests/send_multipart.cpp	2023-04-28 20:39:19.847637133 +0800
+++ cppzmq-4.9.0/tests/send_multipart.cpp	2023-04-28 20:40:22.306761487 +0800
@@ -1,4 +1,4 @@
-#include <catch2/catch.hpp>
+#include <catch2/catch_all.hpp>
 #include <zmq_addon.hpp>
 #ifdef ZMQ_CPP11
 
diff -Naur cppzmq-4.9.0_org/tests/socket.cpp cppzmq-4.9.0/tests/socket.cpp
--- cppzmq-4.9.0_org/tests/socket.cpp	2023-04-28 20:39:19.847637133 +0800
+++ cppzmq-4.9.0/tests/socket.cpp	2023-04-28 20:40:22.305761485 +0800
@@ -1,4 +1,4 @@
-#include <catch2/catch.hpp>
+#include <catch2/catch_all.hpp>
 #include <zmq.hpp>
 #ifdef ZMQ_CPP11
 #include <future>
diff -Naur cppzmq-4.9.0_org/tests/socket_ref.cpp cppzmq-4.9.0/tests/socket_ref.cpp
--- cppzmq-4.9.0_org/tests/socket_ref.cpp	2023-04-28 20:39:19.847637133 +0800
+++ cppzmq-4.9.0/tests/socket_ref.cpp	2023-04-28 20:40:22.308761491 +0800
@@ -1,4 +1,4 @@
-#include <catch2/catch.hpp>
+#include <catch2/catch_all.hpp>
 #include <zmq.hpp>
 #ifdef ZMQ_CPP11
 
diff -Naur cppzmq-4.9.0_org/tests/testutil.hpp cppzmq-4.9.0/tests/testutil.hpp
--- cppzmq-4.9.0_org/tests/testutil.hpp	2023-04-28 20:39:19.847637133 +0800
+++ cppzmq-4.9.0/tests/testutil.hpp	2023-04-28 20:40:22.307761489 +0800
@@ -1,6 +1,6 @@
 #pragma once
 
-#include <catch2/catch.hpp>
+#include <catch2/catch_all.hpp>
 #include <zmq.hpp>
 
 #if defined(ZMQ_CPP11)
diff -Naur cppzmq-4.9.0_org/tests/utilities.cpp cppzmq-4.9.0/tests/utilities.cpp
--- cppzmq-4.9.0_org/tests/utilities.cpp	2023-04-28 20:39:19.847637133 +0800
+++ cppzmq-4.9.0/tests/utilities.cpp	2023-04-28 20:40:22.308761491 +0800
@@ -1,4 +1,4 @@
-#include <catch2/catch.hpp>
+#include <catch2/catch_all.hpp>
 #include <zmq.hpp>
 
 #if defined(ZMQ_CPP11) && !defined(ZMQ_CPP11_PARTIAL)