Metadata-Version: 2.1
Name: cmakerer
Version: 1.3.1
Summary: Generates CMakeLists.txt files from arbitrary C/C++ codebases.
Home-page: https://github.com/ChaosData/cmakerer
Author: Jeff Dileo
Author-email: jtdileo@gmail.com
License: BSD (2 Clause)
Keywords: cmake clion
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3.6
Requires-Python: >=3.6.0
Description-Content-Type: text/markdown
License-File: LICENSE

# CMakerer

This script generates `CMakeLists.txt` from arbitrary C/C++ codebases. It is
not intended to produce "buildable" cmake configurations, but instead enable
CLion to load and index the code.

# Installation

```bash
pip3 install --user cmakerer
```

```bash
python3 setup.py sdist bdist_wheel
pip3 install --user dist/cmakerer-*.whl
```

# Usage

```bash
cmakerer -o ~/path/to/cpp/code/CMakeLists.txt -x src/windows -! tests -z ~/path/to/cpp/code
```

# Features

* Detects both standard and system include paths.
* Handles "multi-encoding" C/C++ files
* Exclude directory paths with `-x`
* Exclude (sub)directory segments with `-!`
* Exclude cmake directories with `-z`
* Add compiler defines with `-DVAR` or `-DVAR=value`
* Deterministically add and remove paths with `-I`/`-S`/`-R`
