chore(cpp): add GTest support

* Compile with ‹_MF_TEST› macro
* Link the GTest library

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2024-02-24 23:23:12 +01:00
parent d924020c46
commit 231b55ed58
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -1 +1,2 @@
export CXXFLAGS="-std=c++20 -Wall -Wextra -g"
export CXXFLAGS="-std=c++20 -Wall -Wextra -g -D_MF_TEST"
export LDLIBS="-lgtest"