Skip to content

lcp5y3/cpputest-zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CppUTest Zig

Using zig build system to build CppUTest unit test library.

Adding It to your project

First update your build.zig.zon with:

zig fetch --save git+https://github.com/lcp5y3/cpputest-zig.git#v4.0.0

After that you can link CppUTest with your project by adding the following lines to your build.zig

const cpputest_dep = b.dependency("cpputest_zig", .{
  .target = target,
  .optimize = optimize,
});

exe.linkLibrary(cpputest_dep.artifact("CppUTest"));
exe.linkLibrary(cpputest_dep.artifact("CppUTestExt"));

Building the lib

If you only want to build CppUTest to get .a and header, run:

zig build

About

Package for CppUTest

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages