include(FetchContent) FetchContent_Declare( Catch2 URL https://github.com/catchorg/Catch2/archive/refs/tags/v3.4.0.zip ) FetchContent_MakeAvailable(Catch2) add_executable(tests test_one.cc) target_link_libraries(tests Catch2::Catch2WithMain)