Visualize CMake target dependencies as a directed graph
Project description
cmake2graph
A tool to visualize CMake target dependencies as a directed graph.
Installation
pip install cmake2graph
To install the package locally for development:
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
cmake2graph /path/to/cpp-cmake-project
cmake2graph /path/to/cpp-cmake-project --exclude-external --output graph.png --target my_target --depth 2
Produces
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cmake2graph-0.1.1.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file cmake2graph-0.1.1.tar.gz
.
File metadata
- Download URL: cmake2graph-0.1.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9d3ad1a4c64239dcc992987d50777fcc791d823e2858539a42adfc790e435094
|
|
MD5 |
42485275a60c4c69313d24b65009bced
|
|
BLAKE2b-256 |
734e0ee25c3810584ee1b6e03348dd56e65420e23db0a02da15ebd425ed291fd
|
File details
Details for the file cmake2graph-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: cmake2graph-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e949f500d118a9983eb2698ce4f0ecab7d4bf3da20152848bdf7488e2d66de31
|
|
MD5 |
c577534647a56beb05f583cb4b9451c9
|
|
BLAKE2b-256 |
07d9a06523cc07c9262aa5f899939c703c0173bd3ff47ad8b485c3bd5c2931f7
|