aboutsummaryrefslogtreecommitdiffstats
path: root/common/network/CMakeLists.txt
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-05-03 14:04:38 +0200
committerPierre Ossman <ossman@cendio.se>2018-05-29 14:38:25 +0200
commit5d05546fe48512f8f2294b85aa09fa7c8cc1933c (patch)
tree28e66ae1856c86e0a6a26633b02548b9ba6b1316 /common/network/CMakeLists.txt
parente3a2be69c48893ef086110b8d92f1fadd004a997 (diff)
downloadtigervnc-5d05546fe48512f8f2294b85aa09fa7c8cc1933c.tar.gz
tigervnc-5d05546fe48512f8f2294b85aa09fa7c8cc1933c.zip
Add support for Unix sockets
Patch originally by Dag-Erling Smørgrav for University of Oslo.
Diffstat (limited to 'common/network/CMakeLists.txt')
-rw-r--r--common/network/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/common/network/CMakeLists.txt b/common/network/CMakeLists.txt
index b624c8e6..a63df96b 100644
--- a/common/network/CMakeLists.txt
+++ b/common/network/CMakeLists.txt
@@ -1,8 +1,14 @@
include_directories(${CMAKE_SOURCE_DIR}/common)
-add_library(network STATIC
+set(NETWORK_SOURCES
TcpSocket.cxx)
+if(NOT WIN32)
+ set(NETWORK_SOURCES ${NETWORK_SOURCES} UnixSocket.cxx)
+endif()
+
+add_library(network STATIC ${NETWORK_SOURCES})
+
if(WIN32)
target_link_libraries(network ws2_32)
endif()