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

54 lines
798 B
CMake
Raw Normal View History

2013-12-10 18:41:43 +00:00
cmake_minimum_required (VERSION 2.6)
project (MCServer)
include_directories ("${PROJECT_SOURCE_DIR}/../")
SET (SRCS
CriticalSection.cpp
Errors.cpp
Event.cpp
File.cpp
GZipFile.cpp
HostnameLookup.cpp
IPLookup.cpp
IsThread.cpp
NetworkSingleton.cpp
Semaphore.cpp
ServerHandleImpl.cpp
StackTrace.cpp
TCPLinkImpl.cpp
2015-02-20 13:28:05 +00:00
UDPEndpointImpl.cpp
2014-10-21 12:49:53 +00:00
)
SET (HDRS
CriticalSection.h
Errors.h
Event.h
File.h
GZipFile.h
HostnameLookup.h
IPLookup.h
IsThread.h
Network.h
NetworkSingleton.h
Queue.h
Semaphore.h
ServerHandleImpl.h
StackTrace.h
TCPLinkImpl.h
2015-02-20 13:28:05 +00:00
UDPEndpointImpl.h
2014-10-21 12:49:53 +00:00
)
if(NOT MSVC)
add_library(OSSupport ${SRCS} ${HDRS})
if(UNIX)
if(NOT APPLE)
target_link_libraries(OSSupport rt)
endif()
target_link_libraries(OSSupport pthread event_core event_extra)
endif()
endif()