Metadata-Version: 2.4
Name: cmake2graph
Version: 0.1.1
Summary: Visualize CMake target dependencies as a directed graph
Home-page: https://github.com/kennethassogba/cmake2graph
Author: Kenneth Assogba
Author-email: kennethassogba@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: networkx
Requires-Dist: matplotlib
Provides-Extra: test
Requires-Dist: pytest>=6.0; extra == "test"
Requires-Dist: pytest-cov>=2.0; extra == "test"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# cmake2graph

A tool to visualize CMake target dependencies as a directed graph.

## Installation

```bash
pip install cmake2graph
```

To install the package locally for development:

```bash
cd cmake2graph
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install flake8 pytest pytest-cov
pip install -e .[test]
pytest --cov=cmake2graph # test
```

## Usage

```bash
cmake2graph /path/to/cpp-cmake-project
cmake2graph /path/to/cpp-cmake-project --exclude-external --output graph.png --target my_target --depth 2
```

Produces

![Example](example.png)

## Features

- Parse CMake files recursively
- Generate dependency graphs
- Filter by specific targets
- Control dependency depth
- Exclude external libraries (not working yet)
- Export to various image formats
