Zig build system integration for jsoncpp
- Add to your project:
zig fetch --save git+https://github.com/neelsani/jsoncpp
- Add to your build.zig
const jsoncpp_dep = b.dependency("jsoncpp", .{
.target = target,
.optimize = optimize,
});
const lib = jsoncpp_dep.artifact("jsoncpp");
//then link it to your exe
exe.linkLibrary(lib);