In this recipe, we demonstrate how to implement unit testing using the Google Test framework, with the help of CMake.
We will use FetchContent
to download a well-defined version of the Google
Test sources at configure time, and then build the framework and link against
it.