darkceey / cmakerer

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

Home Page:https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2018/may/cmakerer-a-small-tool-to-aid-clions-indexing/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 -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

About

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

https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2018/may/cmakerer-a-small-tool-to-aid-clions-indexing/

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 100.0%