summaryrefslogtreecommitdiffstats
path: root/tests/Network/CMakeLists.txt
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-03-13 18:12:33 +0100
committerMattes D <github@xoft.cz>2016-06-18 13:12:06 +0200
commit3184433756c6014e5192bdb92df9a233c62b55e7 (patch)
treeac1876080548ea7e18d327ac204ad0ba1f0c034b /tests/Network/CMakeLists.txt
parentMerge pull request #3224 from QUSpilPrgm/master (diff)
downloadcuberite-3184433756c6014e5192bdb92df9a233c62b55e7.tar
cuberite-3184433756c6014e5192bdb92df9a233c62b55e7.tar.gz
cuberite-3184433756c6014e5192bdb92df9a233c62b55e7.tar.bz2
cuberite-3184433756c6014e5192bdb92df9a233c62b55e7.tar.lz
cuberite-3184433756c6014e5192bdb92df9a233c62b55e7.tar.xz
cuberite-3184433756c6014e5192bdb92df9a233c62b55e7.tar.zst
cuberite-3184433756c6014e5192bdb92df9a233c62b55e7.zip
Diffstat (limited to 'tests/Network/CMakeLists.txt')
-rw-r--r--tests/Network/CMakeLists.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/Network/CMakeLists.txt b/tests/Network/CMakeLists.txt
index f93ccad8e..e47b01e11 100644
--- a/tests/Network/CMakeLists.txt
+++ b/tests/Network/CMakeLists.txt
@@ -13,6 +13,7 @@ set (Network_SRCS
${CMAKE_SOURCE_DIR}/src/OSSupport/Event.cpp
${CMAKE_SOURCE_DIR}/src/OSSupport/HostnameLookup.cpp
${CMAKE_SOURCE_DIR}/src/OSSupport/IPLookup.cpp
+ ${CMAKE_SOURCE_DIR}/src/OSSupport/NetworkInterfaceEnum.cpp
${CMAKE_SOURCE_DIR}/src/OSSupport/NetworkSingleton.cpp
${CMAKE_SOURCE_DIR}/src/OSSupport/ServerHandleImpl.cpp
${CMAKE_SOURCE_DIR}/src/OSSupport/TCPLinkImpl.cpp
@@ -62,3 +63,24 @@ target_link_libraries(EchoServer Network)
# NameLookup: Lookup hostname-to-IP and IP-to-hostname:
add_executable(NameLookup NameLookup.cpp)
target_link_libraries(NameLookup Network)
+
+# EnumInterfaces: List all network interfaces:
+add_executable(EnumInterfaces-exe EnumInterfaces.cpp)
+target_link_libraries(EnumInterfaces-exe Network)
+add_test(NAME EnumInterfaces-test COMMAND EnumInterfaces-exe)
+
+
+
+
+# Put all the tests into a solution folder (MSVC):
+set_target_properties(
+ EchoServer
+ Google-exe
+ NameLookup
+ EnumInterfaces-exe
+ PROPERTIES FOLDER Tests
+)
+
+
+
+