2021-08-19 21:32:33 +02:00
|
|
|
gtest = dependency(
|
|
|
|
'gtest',
|
|
|
|
main: true,
|
|
|
|
required: false,
|
|
|
|
)
|
|
|
|
|
|
|
|
if gtest.found()
|
|
|
|
unit_test_sources = files(
|
2021-08-20 17:22:21 +02:00
|
|
|
'bignum.cc',
|
2021-08-19 21:32:33 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
unit_tests = executable(
|
|
|
|
'unit_tests',
|
|
|
|
sources: unit_test_sources,
|
|
|
|
dependencies: [
|
2021-08-20 17:22:21 +02:00
|
|
|
bignum,
|
2021-08-19 21:32:33 +02:00
|
|
|
gtest,
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
test(
|
|
|
|
'unit tests',
|
|
|
|
unit_tests,
|
|
|
|
protocol: 'gtest',
|
|
|
|
)
|
|
|
|
endif
|