Skip to content

Commit ceec00d

Browse files
author
Anthony Debucquoy
committed
include header cimgui to module
1 parent 2b35f3d commit ceec00d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

build.zig

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pub fn build(b: *std.Build) void {
7373

7474
const options_module = options_step.createModule();
7575

76-
_ = b.addModule("root", .{
76+
const root = b.addModule("root", .{
7777
.root_source_file = b.path("src/gui.zig"),
7878
.imports = &.{
7979
.{ .name = "zgui_options", .module = options_module },
@@ -143,9 +143,12 @@ pub fn build(b: *std.Build) void {
143143
cimgui.addCSourceFile(.{
144144
.file = cimgui_dep.path("cimgui.cpp"),
145145
});
146-
cimgui.installHeadersDirectory(cimgui_dep.path(""), "", .{});
146+
cimgui.addIncludePath(cimgui_dep.path(""));
147+
root.addIncludePath(cimgui_dep.path(""));
147148

148-
// b.installArtifact(cimgui);
149+
b.installArtifact(cimgui);
150+
b.installArtifact(imgui);
151+
149152

150153
if (options.with_freetype) {
151154
if (b.lazyDependency("freetype", .{})) |freetype| {

0 commit comments

Comments
 (0)