2013-12-10 13:41:43 -05:00
|
|
|
|
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
|
2017-06-15 05:03:49 -04:00
|
|
|
NetworkLookup.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
|
2017-06-19 05:05:19 -04:00
|
|
|
WinStackWalker.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
|
2017-06-15 05:03:49 -04:00
|
|
|
GetAddressInfoError.h
|
2014-07-18 03:48:22 -04:00
|
|
|
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
|
2017-06-15 05:03:49 -04:00
|
|
|
NetworkLookup.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
|
2017-06-19 05:05:19 -04:00
|
|
|
WinStackWalker.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})
|
2018-01-03 12:41:16 -05:00
|
|
|
target_link_libraries(OSSupport fmt::fmt)
|
2019-09-04 17:34:54 -04:00
|
|
|
|
|
|
|
if(NOT WIN32)
|
|
|
|
target_link_libraries(OSSupport event_pthreads_static)
|
|
|
|
endif()
|
2013-12-18 19:15:30 -05:00
|
|
|
endif()
|