The FindGTest module that ships with CMake provides the command GTEST_ADD_TESTS , which registers all the test cases from a test executable with CMake so they are listed individually in the report generated by CTest.