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.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

cmakerer-1.3.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cmakerer-1.3.0.tar.gz
  • Upload date:
  • Size: 7.6 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.0.tar.gz
Algorithm Hash digest
SHA256 be0296b00cc642b09261dd3c9383267ec5d0ef1a5e507d4525fe019b87593e0b
MD5 0fc82e34871003257d3765c928bc232c
BLAKE2b-256 71e50208bbdaf71fb34718391b35a6be6b0508b09c8dfd3e387ef0f9718312e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cmakerer-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ba5422bafe2a2f2e347a7c09ed2163829108dadc68bb92a175b005b40e27d5b
MD5 56f8fa4aafee4a656d37acebf2313a5f
BLAKE2b-256 93626768e1758f223dd3f6b37be42576061d3f2c09c5828bf0b815ac745fc30d

See more details on using hashes here.

Supported by

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