Minor update to add_gtests CMake module to avoid invalid warnings.