...
This commit is contained in:
@@ -151,6 +151,13 @@ if (BUILD_TESTS)
|
||||
add_executable(${NETSERVICE_TEST_APP} tests/adc_netservice_test.cpp)
|
||||
target_link_libraries(${NETSERVICE_TEST_APP} OpenSSL::SSL OpenSSL::Crypto)
|
||||
|
||||
if (ASIO_LIBRARY)
|
||||
find_package(cxxopts CONFIG)
|
||||
set(ASIO_NETSERVER_TEST_APP adc_asio_netserver_test)
|
||||
add_executable(${ASIO_NETSERVER_TEST_APP} tests/adc_asio_netserver_test.cpp)
|
||||
target_link_libraries(${ASIO_NETSERVER_TEST_APP} PUBLIC cxxopts::cxxopts)
|
||||
endif()
|
||||
|
||||
if (NOT doctest_FOUND)
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
@@ -167,6 +174,7 @@ if (BUILD_TESTS)
|
||||
# add_test(VALUE_HOLDER ${VALUEHOLDER_TEST_APP})
|
||||
add_test(VALUE_HOLDER ${DEVATTR_TEST_APP})
|
||||
add_test(NETMSG_TEST ${NETMSG_TEST_APP})
|
||||
add_test(ASIO_NETSRV_TEST ${ASIO_NETSERVER_TEST_APP})
|
||||
enable_testing()
|
||||
endif(BUILD_TESTS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user