dozer47528 / bazel-cmakelists

Convert Bazel C++ targets to CMakeLists for IDEs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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+

About

Convert Bazel C++ targets to CMakeLists for IDEs


Languages

Language:Python 100.0%