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:
@@ -1,5 +1,6 @@
|
|||||||
# Google Test dependency
|
# Google Test dependency
|
||||||
gtest_dep = dependency('gtest', main: true, required : true)
|
gtest_dep = dependency('gtest', main: true, required : true)
|
||||||
|
gtest_nomain_dep = dependency('gtest', main: false, required : true)
|
||||||
|
|
||||||
# Subdirectories for unit and integration tests
|
# Subdirectories for unit and integration tests
|
||||||
subdir('dobj')
|
subdir('dobj')
|
||||||
|
|||||||
Reference in New Issue
Block a user