libcheck / check

A unit testing framework for C
GNU Lesser General Public License v2.1
1.08k stars 209 forks source link

check_mem_leaks: integrate check_mem_leaks into CMake #319

Closed hvarga closed 3 years ago

hvarga commented 3 years ago

Commit 8699473b65011b50766d536222329eeb3953f1cc initialy introduced a new test, check_mem_leaks, that can be used with Valgrind to find memory errors.

Since then, test check_mem_leaks can be built with GNU Autotools scripts but lacks integration into CMake scripts. This means that, when CMake is used to build the project, check_mem_leaks will NOT be built.

This commit resolves this by adding support for building check_mem_leaks into CMake scripts as well.

Signed-off-by: Hrvoje Varga hrvoje.varga@gmail.com

brarcher commented 3 years ago

Thanks for adding the test program to the CMake build!