Update to Catch2 v3

This commit is contained in:
cybaol 2024-03-05 18:56:14 +08:00
parent 6164cf7dbc
commit 77364388ac
12 changed files with 13 additions and 14 deletions

View File

@ -8,7 +8,7 @@ if (NOT Catch2_FOUND)
FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v2.13.9)
GIT_TAG v3.5.3)
FetchContent_MakeAvailable(Catch2)
@ -35,7 +35,7 @@ add_executable(
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}
)

View File

@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq.hpp>
#ifdef ZMQ_CPP17

View File

@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq_addon.hpp>
#ifdef ZMQ_CPP11

View File

@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq.hpp>
#if (__cplusplus >= 201703L)

View File

@ -1,5 +1,4 @@
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq.hpp>
#if defined(ZMQ_CPP11)

View File

@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq_addon.hpp>
#ifdef ZMQ_HAS_RVALUE_REFS

View File

@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq_addon.hpp>
#ifdef ZMQ_CPP11

View File

@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq_addon.hpp>
#ifdef ZMQ_CPP11

View File

@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq.hpp>
#ifdef ZMQ_CPP11
#include <future>

View File

@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq.hpp>
#ifdef ZMQ_CPP11

View File

@ -1,6 +1,6 @@
#pragma once
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq.hpp>
#if defined(ZMQ_CPP11)

View File

@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include <zmq.hpp>
#if defined(ZMQ_CPP11) && !defined(ZMQ_CPP11_PARTIAL)