Set INPUT in the Doxyfile.in from '@CMAKE_CURRENT_SOURCE_DIR@/src' to '@CMAKE_SOURCE_DIR@/src'.