This page was once part of an older version of the CMake tutorial which last appeared in CMake 4.1. See the current tutorial version here.
here
Step 6: Adding Support for a Testing Dashboard
Step 8: Adding a Custom Command and Generated File