I found the answer already. The procedure is as follows:
- Execute
doxygen -g. Doxyfile will be generated. - Open Doxyfile and find
INPUT = - After the ‘INPUT =’ put the name of the directory where the source code is located.
- Execute in the command line
doxygen Doxyfile. - The output will be put into the directory where doxygen was executed.