2016-01-01 15:05:09 -05:00
|
|
|
project (Cuberite)
|
2013-12-10 13:41:43 -05:00
|
|
|
|
|
|
|
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
|
|
|
|
2014-07-18 03:48:22 -04:00
|
|
|
SET (SRCS
|
|
|
|
CriticalSection.cpp
|
|
|
|
Errors.cpp
|
|
|
|
Event.cpp
|
|
|
|
File.cpp
|
|
|
|
GZipFile.cpp
|
2015-01-18 05:57:16 -05:00
|
|
|
HostnameLookup.cpp
|
|
|
|
IPLookup.cpp
|
2014-07-18 03:48:22 -04:00
|
|
|
IsThread.cpp
|
2015-02-22 04:51:16 -05:00
|
|
|
NetworkInterfaceEnum.cpp
|
2015-01-17 17:33:59 -05:00
|
|
|
NetworkSingleton.cpp
|
2015-01-18 05:57:16 -05:00
|
|
|
ServerHandleImpl.cpp
|
2014-11-29 17:06:10 -05:00
|
|
|
StackTrace.cpp
|
2015-01-18 05:57:16 -05:00
|
|
|
TCPLinkImpl.cpp
|
2015-02-20 08:28:05 -05:00
|
|
|
UDPEndpointImpl.cpp
|
2014-10-21 08:49:53 -04:00
|
|
|
)
|
2014-07-18 03:48:22 -04:00
|
|
|
|
|
|
|
SET (HDRS
|
|
|
|
CriticalSection.h
|
|
|
|
Errors.h
|
|
|
|
Event.h
|
|
|
|
File.h
|
|
|
|
GZipFile.h
|
2015-01-18 05:57:16 -05:00
|
|
|
HostnameLookup.h
|
|
|
|
IPLookup.h
|
2014-07-18 03:48:22 -04:00
|
|
|
IsThread.h
|
2015-01-09 05:07:43 -05:00
|
|
|
Network.h
|
2015-01-17 17:33:59 -05:00
|
|
|
NetworkSingleton.h
|
2014-07-18 03:48:22 -04:00
|
|
|
Queue.h
|
2015-01-18 05:57:16 -05:00
|
|
|
ServerHandleImpl.h
|
2014-11-29 17:06:10 -05:00
|
|
|
StackTrace.h
|
2015-01-18 05:57:16 -05:00
|
|
|
TCPLinkImpl.h
|
2015-02-20 08:28:05 -05:00
|
|
|
UDPEndpointImpl.h
|
2014-10-21 08:49:53 -04:00
|
|
|
)
|
2014-07-18 03:48:22 -04:00
|
|
|
|
2015-05-23 07:59:41 -04:00
|
|
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
2015-07-29 11:04:03 -04:00
|
|
|
add_flags_cxx("-Wno-error=global-constructors ")
|
2015-05-23 07:59:41 -04:00
|
|
|
endif()
|
|
|
|
|
2014-07-18 16:26:43 -04:00
|
|
|
if(NOT MSVC)
|
|
|
|
add_library(OSSupport ${SRCS} ${HDRS})
|
2013-12-18 19:15:30 -05:00
|
|
|
endif()
|