2020-05-08 10:08:46 +02:00
|
|
|
# Load the cc_library rule.
|
|
|
|
load("@rules_cc//cc:defs.bzl", "cc_library")
|
|
|
|
|
|
|
|
# Header-only rule to export catch2/catch.hpp.
|
|
|
|
cc_library(
|
2020-09-21 12:51:54 +02:00
|
|
|
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"],
|
2020-05-08 10:08:46 +02:00
|
|
|
)
|