Help/manual: Update header-only library example

Use target_sources with a named file set for the header-only library
example in cmake-buildsystem7.

Issue: #23400
1 file changed