2013-12-10 18:41:43 +00:00
|
|
|
|
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
project (MCServer)
|
|
|
|
|
|
|
|
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
|
|
|
|
2014-07-18 07:48:22 +00:00
|
|
|
SET (SRCS
|
|
|
|
CriticalSection.cpp
|
|
|
|
Errors.cpp
|
|
|
|
Event.cpp
|
|
|
|
File.cpp
|
|
|
|
GZipFile.cpp
|
2015-01-18 10:57:16 +00:00
|
|
|
HostnameLookup.cpp
|
|
|
|
IPLookup.cpp
|
2014-07-18 07:48:22 +00:00
|
|
|
IsThread.cpp
|
2015-01-17 22:33:59 +00:00
|
|
|
NetworkSingleton.cpp
|
2014-07-18 07:48:22 +00:00
|
|
|
Semaphore.cpp
|
2015-01-18 10:57:16 +00:00
|
|
|
ServerHandleImpl.cpp
|
2014-11-29 22:06:10 +00:00
|
|
|
StackTrace.cpp
|
2015-01-18 10:57:16 +00:00
|
|
|
TCPLinkImpl.cpp
|
2015-02-20 13:28:05 +00:00
|
|
|
UDPEndpointImpl.cpp
|
2014-10-21 12:49:53 +00:00
|
|
|
)
|
2014-07-18 07:48:22 +00:00
|
|
|
|
|
|
|
SET (HDRS
|
|
|
|
CriticalSection.h
|
|
|
|
Errors.h
|
|
|
|
Event.h
|
|
|
|
File.h
|
|
|
|
GZipFile.h
|
2015-01-18 10:57:16 +00:00
|
|
|
HostnameLookup.h
|
|
|
|
IPLookup.h
|
2014-07-18 07:48:22 +00:00
|
|
|
IsThread.h
|
2015-01-09 10:07:43 +00:00
|
|
|
Network.h
|
2015-01-17 22:33:59 +00:00
|
|
|
NetworkSingleton.h
|
2014-07-18 07:48:22 +00:00
|
|
|
Queue.h
|
|
|
|
Semaphore.h
|
2015-01-18 10:57:16 +00:00
|
|
|
ServerHandleImpl.h
|
2014-11-29 22:06:10 +00:00
|
|
|
StackTrace.h
|
2015-01-18 10:57:16 +00:00
|
|
|
TCPLinkImpl.h
|
2015-02-20 13:28:05 +00:00
|
|
|
UDPEndpointImpl.h
|
2014-10-21 12:49:53 +00:00
|
|
|
)
|
2014-07-18 07:48:22 +00:00
|
|
|
|
2014-07-18 20:26:43 +00:00
|
|
|
if(NOT MSVC)
|
|
|
|
add_library(OSSupport ${SRCS} ${HDRS})
|
2013-12-19 00:15:30 +00:00
|
|
|
|
2014-07-18 20:26:43 +00:00
|
|
|
if(UNIX)
|
2014-10-23 22:03:54 +00:00
|
|
|
if(NOT APPLE)
|
|
|
|
target_link_libraries(OSSupport rt)
|
|
|
|
endif()
|
|
|
|
|
2015-01-24 11:58:27 +00:00
|
|
|
target_link_libraries(OSSupport pthread event_core event_extra)
|
2014-07-18 20:26:43 +00:00
|
|
|
endif()
|
2013-12-19 00:15:30 +00:00
|
|
|
endif()
|