This issue doesn't sound specific to catch2; it sounds like a misconfiguration of your project's CMake / file directory.
The first error says it can't find test.cpp ; if just a bare relative path, then it should be right beside the CMakeLists.txt
Its been a while since I messed with Catch2, but it may be worthwhile trying to use it without CMake first just to separate the concerns
E.g. test.cpp
#include <catch2/catch_test_macros.hpp>
TEST_CASE("Arithmetic") {
REQUIRE(2 + 2 == 4);
}
Compile (e.g. with gnu toolchain; Assuming g++ and catch2 are installed system-wide and properly integrated into the environment by your package manager)
g++ -std=c++17 test.cpp -o tests -lCatch2Main -lCatch2
Then just run ./tests