add dns lookup test

This commit is contained in:
Benjamin Sergeant
2019-01-05 14:40:17 -08:00
parent 78d88a8520
commit 59cea0372b
3 changed files with 66 additions and 8 deletions

View File

@ -18,15 +18,25 @@ include_directories(
${PROJECT_SOURCE_DIR}/Catch2/single_include
)
add_executable(ixwebsocket_unittest
# Shared sources
set (SOURCES
test_runner.cpp
cmd_websocket_chat.cpp
IXWebSocketServerTest.cpp
IXSocketTest.cpp
IXDNSLookupTest.cpp
IXTest.cpp
msgpack11.cpp
)
# Some unittest don't work on windows yet
if (NOT WIN32)
list(APPEND SOURCES
IXWebSocketServerTest.cpp
cmd_websocket_chat.cpp
IXSocketTest.cpp
)
endif()
add_executable(ixwebsocket_unittest ${SOURCES})
if (APPLE AND USE_TLS)
target_link_libraries(ixwebsocket_unittest "-framework foundation" "-framework security")
endif()