Add the last (*) missing bit for feature parity with autotools. Also test in CI. Add a new `cmake install` step to GHA/macos. (*) AFAIK. Let us know if there's something else missing. Closes #16833