include_directories: [include_directories('.')] + INCLUDES,
link_with: LIBS_BUILT_SO_FAR,
)
+
+if crypto.name() == openssl.name()
+ executable(
+ 'openssl_sample_client',
+ 'openssl_sample_client.cc',
+ cpp_args: [f'-DTEST_CA_DIR="@TEST_CA_DIR@"'],
+ dependencies: [gtest, openssl],
+ include_directories: [include_directories('.')] + INCLUDES,
+ link_with: LIBS_BUILT_SO_FAR,
+ )
+ executable(
+ 'openssl_sample_server',
+ 'openssl_sample_server.cc',
+ cpp_args: [f'-DTEST_CA_DIR="@TEST_CA_DIR@"'],
+ dependencies: [gtest, openssl],
+ include_directories: [include_directories('.')] + INCLUDES,
+ link_with: LIBS_BUILT_SO_FAR,
+ )
+elif crypto.name() == botan.name()
+ executable(
+ 'botan_sample_client',
+ 'botan_sample_client.cc',
+ cpp_args: [f'-DTEST_CA_DIR="@TEST_CA_DIR@"'],
+ dependencies: [gtest, botan],
+ include_directories: [include_directories('.')] + INCLUDES,
+ link_with: LIBS_BUILT_SO_FAR,
+ )
+ executable(
+ 'botan_sample_server',
+ 'botan_sample_server.cc',
+ cpp_args: [f'-DTEST_CA_DIR="@TEST_CA_DIR@"'],
+ dependencies: [gtest, botan],
+ include_directories: [include_directories('.')] + INCLUDES,
+ link_with: LIBS_BUILT_SO_FAR,
+ )
+endif
\ No newline at end of file
f'-DTEST_CA_DIR="@TEST_CA_DIR@"',
f'-DDATA_DIR="@CURRENT_SOURCE_DIR@/testdata"',
],
- dependencies: [gtest],
+ dependencies: [gtest, crypto],
include_directories: [include_directories('.')] + INCLUDES,
link_with: [kea_util_unittests_lib] + libs_testutils + LIBS_BUILT_SO_FAR,
)
'run_unittests.cc',
'tcp_listener_unittests.cc',
cpp_args: [f'-DTEST_CA_DIR="@TEST_CA_DIR@"'],
- dependencies: [gtest],
+ dependencies: [gtest, crypto],
include_directories: [include_directories('.')] + INCLUDES,
link_with: [kea_util_unittests_lib, kea_asiolink_testutils_lib] + LIBS_BUILT_SO_FAR,
)