sinojelly / mockcpp

Two C/C++ testing tools, mockcpp and testngpp.
Apache License 2.0
67 stars 42 forks source link

improve portability of Makefiles #64

Open brendan-simon-indt opened 1 month ago

brendan-simon-indt commented 1 month ago

Improve portability of Makefiles by finding the cmake tool in the user's path, rather than hardcoding it. On MSYS2 environment, cmake is located at:

Improve portability by not hard coding top-level directory path. Instead determine top-level path from the current Makefile.

For test-ng-pp I took the liberty of assuming test-ng was installed alongside mockcpp, made the directory relative to it.