freetype: build: add package to tests

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-05-23 20:20:59 -07:00 committed by Stephen Gutekanst
parent 14ecaa6a7e
commit b146f47037

View file

@ -11,11 +11,13 @@ pub fn build(b: *std.build.Builder) !void {
const dedicated_tests = b.addTest("src/main.zig");
dedicated_tests.setBuildMode(mode);
dedicated_tests.setTarget(target);
dedicated_tests.addPackage(pkg);
link(b, dedicated_tests, .{});
const main_tests = b.addTest("test/main.zig");
main_tests.setBuildMode(mode);
main_tests.setTarget(target);
main_tests.addPackage(pkg);
link(b, main_tests, .{ .custom_config_path = "./test/ft" });
const test_step = b.step("test", "Run library tests");