gtest can provide a main function but something this might conflict if you just want to use the comparison macros. Added a new variable in the meson build system gtest_nomain_dep which brings in the macros but not the main function. This can be linked against without having to worry about main function conflicts.