【问题标题】:Can you add doxygen tags for CMake scripts/files?你可以为 CMake 脚本/文件添加 doxygen 标签吗?
【发布时间】:2013-10-09 00:58:10
【问题描述】:

基本上,我可以为 CMake 文件添加 doxygen 样式的标签吗(大多数情况下,我想添加文件和作者标签以与现有的 C++ 代码保持一致)。像

###
###@file Stuff.CMake
###@author  Bob Smith <bob.smit@nonubuisness.com>
###
###
###@section EDITS
###
### 2013.10.02 Created
###
###@section DESCRIPTIONS
### Does stuff
###
###@section License
###Copyright Info, License, ect
###
cmake_minimum_required(VERSION 2.8)

###
###@brief Macro that does something
###
###@param bar thing to do something to
###
macro foo(bar)
endmacro()

【问题讨论】:

    标签: cmake doxygen


    【解决方案1】:

    一些可行的方法是将 *.CMake 添加到 doxyfile 中的 FILE_PATTERNS 选项并注释如下:

    #///
    #///@file Stuff.CMake
    #///@author  Bob Smith <bob.smit@nonubuisness.com>
    #/// etc.
    

    可能是一个问题是 Doxygen 不知道 CMake 语法...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-17
      • 1970-01-01
      • 2012-12-08
      • 2016-04-25
      • 2010-10-16
      相关资源
      最近更新 更多