add sqlite

This commit is contained in:
Fabien Freling 2023-10-04 14:20:49 +02:00
parent 381db25621
commit d2f8af619f
3 changed files with 12 additions and 2 deletions

View file

@ -22,6 +22,7 @@ pub fn build(b: *std.Build) void {
});
exe.addIncludePath(.{ .path = "3rd-party/raygui/src" });
exe.linkLibrary(raylib_dep.artifact("raylib"));
exe.linkSystemLibrary("sqlite3");
// This declares intent for the executable to be installed into the
// standard location when the user invokes the "install" step (the default

View file

@ -6,6 +6,9 @@ const raygui = @cImport({
@cDefine("RAYGUI_IMPLEMENTATION", "1");
@cInclude("raygui.h");
});
const sqlite = @cImport({
@cInclude("sqlite3.h");
});
pub fn main() !void {
const screen_width = 800;