• Stars
    star
    107
  • Rank 321,838 (Top 7 %)
  • Language
    Python
  • Created over 7 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Convert Bazel C++ targets to CMakeLists for IDEs

bazel-cmakelists

The workaround script to generate a CMakeLists.txt from Bazel C++ target.

Usage

bazel-cmakelists --targets <bazel-target>

e.g.

bazel-cmakelists --targets //test/...
  • Do not use generated CMakeLists.txt to build, use bazel.
  • Only tested with CLion, might work for other IDEs that understand CMakeLists.txt
  • After a change to BUILD or WORKSPACE files, re-run the script to get CMakeLists.txt updated.

Requirements

  • Python 2.7
  • Bazel 0.17+