Skip to content

Convert Bazel C++ targets to CMakeLists for IDEs

Notifications You must be signed in to change notification settings

lizan/bazel-cmakelists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages