This commit is contained in:
parent
725910eb9c
commit
603840879d
11 changed files with 283 additions and 18235 deletions
|
|
@ -4,7 +4,8 @@ namespace fs = std::filesystem;
|
|||
using namespace Crafter;
|
||||
|
||||
// A pure library project: the root Configuration is the lib itself. Tests
|
||||
// under tests/ are auto-discovered (see tests/Smoke and tests/UnitMyMath).
|
||||
// are declared with cfg.AddTest — one line per test, with deps and other
|
||||
// options applied via the returned builder.
|
||||
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view>) {
|
||||
Configuration cfg;
|
||||
cfg.path = "./mylib/";
|
||||
|
|
@ -16,5 +17,9 @@ extern "C" Configuration CrafterBuildProject(std::span<const std::string_view>)
|
|||
std::array<fs::path, 1> ifaces = { "MyMath" };
|
||||
std::array<fs::path, 0> impls = {};
|
||||
cfg.GetInterfacesAndImplementations(ifaces, impls);
|
||||
|
||||
cfg.AddTest("Smoke");
|
||||
cfg.AddTest("UnitMyMath").Dependencies({ &cfg });
|
||||
|
||||
return cfg;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue