summaryrefslogtreecommitdiffstats
path: root/tests/Network/CMakeLists.txt
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-11 11:21:18 +0100
committerMattes D <github@xoft.cz>2015-01-22 20:12:45 +0100
commitfde44cba0815f626253c0d352cd0d782eec94328 (patch)
treea25648d28be80c624b3fea7240c8449991d08564 /tests/Network/CMakeLists.txt
parentExcluded PolarSSL tests from MCS tests. (diff)
downloadcuberite-fde44cba0815f626253c0d352cd0d782eec94328.tar
cuberite-fde44cba0815f626253c0d352cd0d782eec94328.tar.gz
cuberite-fde44cba0815f626253c0d352cd0d782eec94328.tar.bz2
cuberite-fde44cba0815f626253c0d352cd0d782eec94328.tar.lz
cuberite-fde44cba0815f626253c0d352cd0d782eec94328.tar.xz
cuberite-fde44cba0815f626253c0d352cd0d782eec94328.tar.zst
cuberite-fde44cba0815f626253c0d352cd0d782eec94328.zip
Diffstat (limited to 'tests/Network/CMakeLists.txt')
-rw-r--r--tests/Network/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/Network/CMakeLists.txt b/tests/Network/CMakeLists.txt
index 8aae84590..a63ce7dfe 100644
--- a/tests/Network/CMakeLists.txt
+++ b/tests/Network/CMakeLists.txt
@@ -8,7 +8,16 @@ include_directories(${CMAKE_SOURCE_DIR}/lib/libevent/include)
add_definitions(-DTEST_GLOBALS=1)
add_library(Network ${CMAKE_SOURCE_DIR}/src/OSSupport/Network.cpp ${CMAKE_SOURCE_DIR}/src/OSSupport/Event.cpp ${CMAKE_SOURCE_DIR}/src/StringUtils.cpp)
target_link_libraries(Network event_core event_extra)
+if (MSVC)
+ target_link_libraries(Network ws2_32.lib)
+endif()
add_executable(Google-exe Google.cpp)
target_link_libraries(Google-exe Network)
add_test(NAME Google-test COMMAND Google-exe)
+
+add_executable(EchoServer EchoServer.cpp)
+target_link_libraries(EchoServer Network)
+
+add_executable(NameLookup NameLookup.cpp)
+target_link_libraries(NameLookup Network)