cmake: let `test-tool` run the unit tests, too
commit951105664dd4de73a8c949b0fb875e895d149ece
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 15 Feb 2024 23:15:24 +0000 (15 23:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 May 2024 21:11:45 +0000 (6 14:11 -0700)
tree2b7a1116edbfa206c36f85b4e9acd9b28f88282d
parentb121eed8d5b933cdba3a6eb802b90455ec8d07b8
cmake: let `test-tool` run the unit tests, too

The `test-tool` recently learned to run the unit tests. To this end, it
needs to link with `test-lib.c`, which was done in the `Makefile`, and
this patch does it in the CMake definition, too.

This is a companion of 44400f58407e (t0080: turn t-basic unit test into
a helper, 2024-02-02).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/buildsystems/CMakeLists.txt