feat(tests/meson.build): added gtest dep without main function

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.
This commit is contained in:
2025-01-22 06:59:54 -05:00
parent 6183b853f0
commit f3788f25f6

View File

@@ -1,5 +1,6 @@
# Google Test dependency
gtest_dep = dependency('gtest', main: true, required : true)
gtest_nomain_dep = dependency('gtest', main: false, required : true)
# Subdirectories for unit and integration tests
subdir('dobj')