Skip to main content

Generates CMakeLists.txt files from arbitrary C/C++ codebases.

Project description

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

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

Usage

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmakerer-1.3.2.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cmakerer-1.3.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file cmakerer-1.3.2.tar.gz.

File metadata

  • Download URL: cmakerer-1.3.2.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for cmakerer-1.3.2.tar.gz
Algorithm Hash digest
SHA256 63aba0e790f7a3168f71f3711ed76b5c1f768dd5994371874693574e33f00e82
MD5 35e961ac5a3bd82ca09cca5901bc22a9
BLAKE2b-256 932b76d747537b3e9f83672379360639ad88c9aaa89b7cca65972b17e6d2d6a8

See more details on using hashes here.

File details

Details for the file cmakerer-1.3.2-py3-none-any.whl.

File metadata

  • Download URL: cmakerer-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for cmakerer-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7ab105a2c0d15bedfba7bb9d20ae44ea3ce8adb463a109f8327ada1da37aac09
MD5 ae0f08d7a98a5916e452366a55e1858e
BLAKE2b-256 633533b2e4d8e75f08b1e9a0c41025ee1cafd4d0b633ddc97cb7cd2c2f80c3da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page