summaryrefslogtreecommitdiffstats
path: root/common/network/CMakeLists.txt
blob: 2f7c7ad3230a2cf302affb9d33691b933f18834c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
include_directories(${CMAKE_SOURCE_DIR}/common)

add_library(network STATIC
  Socket.cxx
  TcpSocket.cxx)

if(NOT WIN32)
  target_sources(network PRIVATE UnixSocket.cxx)
endif()

if(WIN32)
	target_link_libraries(network ws2_32)
endif()

if(UNIX)
  libtool_create_control_file(network)
endif()