implementing area, car structs

This commit is contained in:
2025-07-20 12:41:27 +02:00
parent c3cc8f68c1
commit 1c08b255e9
6 changed files with 76 additions and 39 deletions

View File

@@ -65,6 +65,17 @@ pub fn build(b: *std.Build) void {
.root_module = exe_mod,
});
const raylib_dep = b.dependency("raylib_zig", .{
.target = target,
.optimize = optimize,
});
const raylib = raylib_dep.module("raylib"); // main raylib module
const raylib_artifact = raylib_dep.artifact("raylib"); // raylib c library
exe.linkLibrary(raylib_artifact);
exe.root_module.addImport("raylib", raylib);
// This declares intent for the executable to be installed into the
// standard location when the user invokes the "install" step (the default
// step when running `zig build`).