vtkModuleJSON#

_vtk_json_bool#

Output a boolean to JSON. module-impl

Appends a condition as a JSON boolean with the given dictionary key name to the given string variable.

_vtk_json_bool(<output> <name> <cond>)
_vtk_json_string_list#

Output a string list to JSON. module-impl

Appends a variable as a JSON list of strings with the given dictionary key name to the given string variable.

_vtk_json_string_list(<output> <name> <cond>)
vtk_module_json#

JSON metadata representation of modules. module-support

Information about the modules built and/or available may be dumped to a JSON file.

vtk_module_json(
   MODULES   <module>...
   OUTPUT    <path>)
  • MODULES: (Required) The modules to output information for.

  • OUTPUT: (Required) A JSON file describing the modules built will

    be output to this path. Relative paths are rooted to CMAKE_BINARY_DIR.

Example output:

{
  "modules": [
    {
      "name": "...",
      "library_name": "...",
      "enabled": <bool>,
      "implementable": <bool>,
      "third_party": <bool>,
      "wrap_exclude": <bool>,
      "kit": "...",
      "depends": [
        "..."
      ],
      "optional_depends": [
        "..."
      ],
      "private_depends": [
        "..."
      ],
      "implements": [
        "..."
      ],
      "headers": [
        "..."
      ]
    }
  ],
  "kits": [
    {
      "name": "...",
      "enabled": <bool>,
      "modules": [
      ]
    }
  ]
}