Skip to content

Cmake: Documenting cmake script #9906

@LecrisUT

Description

@LecrisUT

I am sorry if this is already implemented, but I couldn't see it in the issues or the list of supported languages.


Description

Being able to generate xml and html documentation for cmake entities. These would be particularly useful with sphinx+breathe and moderncmakedomain

Details

A minimal documentation that would be helpful for the user documentation:

  • macro() and function(): positional arguments, named arguments (from cmake_parsed_arguments), and expected variables (set from the parent when function/macro is called)
  • option() and set(CACHE): type, default, helper string
  • target: type, aliases, exported name, generated object (library and binary) if any
  • install(COMPONENT): component, installed items
  • install(FILES): files, destination
  • export(TARGET) (part of target above)
  • find_package(COMPONENT): component, target file

Additionally I think these are helpful for the developer documentation:

  • add_custom_command(): output files/target, commands, comment
  • add_custom_target(): target, commands, comment
  • include(): location (e.g. my_helper.cmake)

Metadata

Metadata

Assignees

No one assigned

    Labels

    needinforeported bug is incomplete, please add additional info

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions