diff options
author | Pierre Ossman <ossman@cendio.se> | 2018-05-03 14:04:38 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2018-05-29 14:38:25 +0200 |
commit | 5d05546fe48512f8f2294b85aa09fa7c8cc1933c (patch) | |
tree | 28e66ae1856c86e0a6a26633b02548b9ba6b1316 /common/network/CMakeLists.txt | |
parent | e3a2be69c48893ef086110b8d92f1fadd004a997 (diff) | |
download | tigervnc-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.txt | 8 |
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() |