The Catch2 code repository contains a contributed CMake function to parse Catch tests and automatically create CMake tests, without explicitly typing add_test() functions; seeĀ https://github.com/catchorg/Catch2/blob/master/contrib/ParseAndAddCatchTests.cmake.