2019-01-20 20:46:35 +01:00
|
|
|
test_net_sources = []
|
|
|
|
|
|
|
|
if have_tcp
|
|
|
|
test_net_sources += 'TestIPv4Address.cxx'
|
|
|
|
if have_ipv6
|
|
|
|
test_net_sources += 'TestIPv6Address.cxx'
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
if have_local_socket
|
|
|
|
test_net_sources += 'TestLocalSocketAddress.cxx'
|
|
|
|
endif
|
|
|
|
|
|
|
|
test(
|
|
|
|
'TestNet',
|
|
|
|
executable(
|
|
|
|
'TestNet',
|
|
|
|
test_net_sources,
|
|
|
|
include_directories: inc,
|
|
|
|
dependencies: [
|
|
|
|
net_dep,
|
2022-05-12 19:26:49 +02:00
|
|
|
fs_dep,
|
2022-09-06 20:44:21 +02:00
|
|
|
util_dep,
|
2019-01-20 20:46:35 +01:00
|
|
|
gtest_dep,
|
|
|
|
],
|
|
|
|
),
|
2021-11-26 08:45:50 +01:00
|
|
|
protocol: 'gtest',
|
2019-01-20 20:46:35 +01:00
|
|
|
)
|