Package for CppUTest
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-15 10:35:53 +02:00
.github/workflows Update ci.yml 2025-09-23 10:52:25 +02:00
.gitignore update gitignore to hide zig-pkg 2026-09-15 10:35:53 +02:00
build.zig fixing cpputest source files by adding plateform UtestPlatform.cpp 2026-09-15 10:33:45 +02:00
build.zig.zon update to zig 0.16.0 2026-06-24 15:55:39 +02:00
LICENSE minimal packaging of cpputest with zig build system 2024-12-27 15:10:01 +01:00
readme.md fixing cpputest source files by adding plateform UtestPlatform.cpp 2026-09-15 10:33:45 +02:00

CppUTest Zig

Using zig build system to build CppUTest unit test library.

ATTENTION this port only support "Plateform/Gcc" with stdlib enable."

Adding It to your project

First update your build.zig.zon with:

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

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

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

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

Building the lib

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

zig build