diff options
| author | Leitwolf | 2026-11-16 14:48:52 +0300 |
|---|---|---|
| committer | GitHub | 2026-11-16 14:48:52 +0300 |
| commit | 57dc4f2fee6881884b10085e85927a0c1710ea61 (patch) | |
| tree | f04d44d03b84c93b0383dfbce492b32b1c23dc76 /docs | |
| parent | 48a52e544ae90d6767240a8b5f030350795fbd7b (diff) | |
| parent | 5a63d9c746daa1748db7622a5e3effb9ca5c4b40 (diff) | |
| download | catch3-devel.tar.gz | |
Prepare the Bazel Central Registry entry as progmasoft_catch3
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/progmasoft-catch3.md | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/docs/progmasoft-catch3.md b/docs/progmasoft-catch3.md index ee222e6d..05948fd4 100644 --- a/docs/progmasoft-catch3.md +++ b/docs/progmasoft-catch3.md @@ -179,8 +179,22 @@ find_package(Catch3 0.3 CONFIG REQUIRED) target_link_libraries(MyTests PRIVATE Catch3::Catch3WithMain) ``` -The Bazel target is `//:catch3`; its tests are -`//tests/Progmasoft:property_tests`. Bazel is the primary +In the Bazel Central Registry, from 0.5.0 on, the module is +`progmasoft_catch3`, for Bazel 8 and later: + +```starlark +bazel_dep(name = "progmasoft_catch3", version = "0.5.0") +``` + +Its targets are `@progmasoft_catch3//:catch3` and +`@progmasoft_catch3//:catch3_main`, which brings `main`. Code that includes +the headers is C++17 or later, so a module that is not already set to it +passes `--cxxopt=-std=c++17` (`--cxxopt=/std:c++17` with MSVC, which defaults +to C++14). + +In this repository the Bazel target is `//:catch3`; its tests are +`//tests/Progmasoft:property_tests`, and `tests/Progmasoft/BazelModule` is a +module that depends on Catch3 as a user's does. Bazel is the primary build path; CMake, Meson, Xmake, and Premake are also maintained as alternate ways to build the same engine and property tests. Their root files are `CMakeLists.txt`, `meson.build`, `xmake.lua`, and `premake5.lua`. Xmake and |