2016-01-01 20:05:09 +00:00
|
|
|
project (Cuberite)
|
2013-12-10 18:41:43 +00:00
|
|
|
|
|
|
|
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-02-22 09:51:16 +00:00
|
|
|
NetworkInterfaceEnum.cpp
|
2015-01-17 22:33:59 +00:00
|
|
|
NetworkSingleton.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
|
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
|
|
|
|
2015-05-23 11:59:41 +00:00
|
|
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
2015-07-29 15:04:03 +00:00
|
|
|
add_flags_cxx("-Wno-error=global-constructors ")
|
2015-05-23 11:59:41 +00:00
|
|
|
endif()
|
|
|
|
|
2014-07-18 20:26:43 +00:00
|
|
|
if(NOT MSVC)
|
|
|
|
add_library(OSSupport ${SRCS} ${HDRS})
|
2013-12-19 00:15:30 +00:00
|
|
|
endif()
|