You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			22 lines
		
	
	
		
			371 B
		
	
	
	
		
			CMake
		
	
			
		
		
	
	
			22 lines
		
	
	
		
			371 B
		
	
	
	
		
			CMake
		
	
include_directories(${CMAKE_SOURCE_DIR}/common)
 | 
						|
 | 
						|
set(NETWORK_SOURCES
 | 
						|
  Socket.cxx
 | 
						|
  TcpSocket.cxx
 | 
						|
  websocket.c
 | 
						|
  websockify.c)
 | 
						|
 | 
						|
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()
 |