Skip to content

Latest commit

 

History

History

recipe-03

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Defining a unit test and linking against Google Test

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.