20 lines
693 B
C++
20 lines
693 B
C++
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
||
|
|
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||
|
|
|
||
|
|
import std;
|
||
|
|
import Crafter.Build;
|
||
|
|
using namespace Crafter;
|
||
|
|
|
||
|
|
// A library whose test depends on it: the test's dependency is a pointer to
|
||
|
|
// the Configuration this function returns. A library with no sources is
|
||
|
|
// enough, since the test that loads this file reads the pointer and builds
|
||
|
|
// nothing.
|
||
|
|
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view>) {
|
||
|
|
Configuration cfg;
|
||
|
|
cfg.path = "./";
|
||
|
|
cfg.name = "own";
|
||
|
|
cfg.outputName = "own";
|
||
|
|
cfg.type = ConfigurationType::LibraryStatic;
|
||
|
|
cfg.AddTest("OwnTest").Dependencies({ &cfg });
|
||
|
|
return cfg;
|
||
|
|
}
|