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 8: Adding a Custom Command and Generated File
Step 10: Selecting Static or Shared Libraries