BUILD.bazel 436 B

1234567891011121314151617
  1. # Load the cc_library rule.
  2. load("@rules_cc//cc:defs.bzl", "cc_library")
  3. # Header-only rule to export catch2/catch.hpp.
  4. cc_library(
  5. name = "catch2",
  6. hdrs = ["single_include/catch2/catch.hpp"],
  7. includes = ["single_include/"],
  8. visibility = ["//visibility:public"],
  9. )
  10. cc_library(
  11. name = "catch2_with_main",
  12. srcs = ["src/catch_with_main.cpp"],
  13. visibility = ["//visibility:public"],
  14. deps = ["//:catch2"],
  15. )