Document cmake macros and reenable corresponding cmake-lint check.

Edited by Tobias Leibner