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.
10 lines
278 B
Meson
10 lines
278 B
Meson
# 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')
|
|
|
|
# Subdirectories for sandbox tests
|
|
subdir('dobj_sandbox')
|