如何设置Doxygen的输入目录? [英] How to set an input directory for Doxygen?

查看:427
本文介绍了如何设置Doxygen的输入目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个目录,其中保存了所有源文件和头文件。我想运行Doxygen为这些源代码生成文档。但是,我不想更改此目录中的任何内容(特别是我无法添加将在其中保存Doxygen文档的子目录)。

I have a directory in which all source and header files are saved. I would like to run Doxygen to generate documentation for these source code. However, I do not want to change anything in this directory (in particular I cannot add sub directories in which Doxygen documentation will be saved).

如何实现我的目标

我认为我需要执行以下操作:
-我创建并转到 documentation目录。
-在此目录中,执行 doxygen -g 创建一个名为 Doxyfile的模板配置文件。
-然后,我认为,我需要修改Doxyfile来指示源代码不在当前目录中。

I think I need to do the following: - I create and go to the 'documentation' directory. - In this directory I execute doxygen -g to create a template configuration file named "Doxyfile". - Then, I think, I need to modify the Doxyfile to indicate that the source code is not in the current directory.

顺便说一句,输出是否自动(默认情况下)保存在执行Doxygen的目录中?

By the way, will the output be automatically (by default) saved in the directory in which Doxygen is executed?

推荐答案

我已经找到答案了。步骤如下:

I found the answer already. The procedure is as follows:


  1. 执行 doxygen -g

  2. 打开Doxyfile并找到 INPUT =

  3. 在'INPUT之后='=放置源代码所在的目录的名称。

  4. 在命令行 doxygen Doxyfile 中执行。

  5. 输出将被放入执行doxygen的目录中。

  1. Execute doxygen -g. Doxyfile will be generated.
  2. Open Doxyfile and find INPUT =
  3. After the 'INPUT =' put the name of the directory where the source code is located.
  4. Execute in the command line doxygen Doxyfile.
  5. The output will be put into the directory where doxygen was executed.

这篇关于如何设置Doxygen的输入目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆