cmake: Do not use a subdirectory to generate all the files
Current behavior is:
- have the macro for library
foo
in<srcdir>
- the files are generated in
<builddir>/foo
Expected behavior is to have all the files generated in the current directory (because otherwise the CMake in the main directory becomes very verbose when you have several documentation to generate)