more tests
Some checks failed
CI / build-test-release (push) Has been cancelled

This commit is contained in:
Jorijn van der Graaf 2026-04-29 03:52:08 +02:00
commit 19b059a88c
11 changed files with 286 additions and 1 deletions

20
tests/Cuda/project.cpp Normal file
View file

@ -0,0 +1,20 @@
import std;
import Crafter.Build;
namespace fs = std::filesystem;
using namespace Crafter;
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view>) {
Configuration cfg;
cfg.path = "tests/Cuda/";
cfg.name = "Cuda";
cfg.outputName = "Cuda";
cfg.target = "x86_64-pc-linux-gnu";
cfg.type = ConfigurationType::Executable;
cfg.dependencies = { ParentLib("crafter.build-lib") };
cfg.linkFlags.push_back("-Wl,--export-dynamic");
cfg.linkFlags.push_back("-ldl");
std::array<fs::path, 0> ifaces = {};
std::array<fs::path, 1> impls = { "Cuda" };
cfg.GetInterfacesAndImplementations(ifaces, impls);
return cfg;
}