From 231b55ed5820221f655fcf9d54fee860d4194030 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sat, 24 Feb 2024 23:23:12 +0100 Subject: [PATCH] chore(cpp): add GTest support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Compile with ‹_MF_TEST› macro * Link the GTest library Signed-off-by: Matej Focko --- cpp/.envrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/.envrc b/cpp/.envrc index e62a47d..3506d1c 100644 --- a/cpp/.envrc +++ b/cpp/.envrc @@ -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"