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

set(NETWORK_SOURCES
  Socket.cxx
  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()

if(UNIX)
  libtool_create_control_file(network)
endif()