1
0
cuberite-2a/src/OSSupport/CMakeLists.txt

54 lines
865 B
CMake
Raw Normal View History

2013-12-10 13:41:43 -05:00
SET (SRCS
CriticalSection.cpp
Errors.cpp
Event.cpp
File.cpp
GZipFile.cpp
HostnameLookup.cpp
IPLookup.cpp
IsThread.cpp
NetworkInterfaceEnum.cpp
NetworkLookup.cpp
NetworkSingleton.cpp
ServerHandleImpl.cpp
StackTrace.cpp
TCPLinkImpl.cpp
2015-02-20 08:28:05 -05:00
UDPEndpointImpl.cpp
WinStackWalker.cpp
2014-10-21 08:49:53 -04:00
)
SET (HDRS
CriticalSection.h
Errors.h
Event.h
File.h
GetAddressInfoError.h
GZipFile.h
HostnameLookup.h
IPLookup.h
IsThread.h
Network.h
NetworkLookup.h
NetworkSingleton.h
Queue.h
ServerHandleImpl.h
StackTrace.h
TCPLinkImpl.h
2015-02-20 08:28:05 -05:00
UDPEndpointImpl.h
WinStackWalker.h
2014-10-21 08:49:53 -04:00
)
2015-05-23 07:59:41 -04:00
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_flags_cxx("-Wno-error=global-constructors ")
2015-05-23 07:59:41 -04:00
endif()
if(NOT MSVC)
add_library(OSSupport ${SRCS} ${HDRS})
target_link_libraries(OSSupport fmt::fmt)
if(NOT WIN32)
target_link_libraries(OSSupport event_pthreads_static)
endif()
endif()