Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/BUILD.bazel
blob: 229c550ea095b47ea3a5f2e6148feb49209c1afa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Load the cc_library rule.
load("@rules_cc//cc:defs.bzl", "cc_library")

# Header-only rule to export catch2/catch.hpp.
cc_library(
    name = "catch2",
    hdrs = ["single_include/catch2/catch.hpp"],
    includes = ["single_include/"],
    visibility = ["//visibility:public"],
)

cc_library(
    name = "catch2_with_main",
    srcs = ["src/catch_with_main.cpp"],
    visibility = ["//visibility:public"],
    deps = ["//:catch2"],
)