repair doxygen support

This adds support for `USE_DOXYGEN` to the CMake files.