Add doc in the CMake macro when not present.

Move unused macro in an obsolete directory.