cmake_configure_file
v0.1.0
published 1 year ago
7 stars
1 forks
1 watchers
public
1 assets
130,277 downloads
4 KB
Compatibility level unknown
3jNs7rMqmwfWHsVuB8Z77vv0HXHNUiJWTr61kWJcXoQ=
Maintained byDaisuke Nishimatsu
v0.1.0
February 8, 2024
[expand for release notes]

cmake_configure_file

This macro is alternative to cmake configure_file() in bazel, originally from drake.

Usage

# MODULE.bazel
bazel_dep(name = "cmake_configure_file", version = "0.1.0")

# BUILD.bazel
load(
    "@cmake_configure_file//:cmake_configure_file.bzl",
    "cmake_configure_file",
)

cmake_configure_file(
    name = ...,
    src = ...,
    out = ...,
    defines = [
        ...,
    ],
    undefines = [
        ...,
    ],
    visibility = ["//visibility:private"],
)