Unit Tests and CMake

Here’s an example CMakeLists.txt, where I set up a unit test target, using the GTest framework: The above should get you going with unit testing, as long as CMake can find the GTest frameworks on your computer. If you need to point CMake to another directory for the GoogleTest, GTest, stuff, you can add the … Read more