2013-12-10 13:41:43 -05:00
|
|
|
|
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
project (MCServer)
|
|
|
|
|
|
|
|
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
|
|
|
|
IsThread.cpp
|
|
|
|
ListenThread.cpp
|
|
|
|
Semaphore.cpp
|
|
|
|
Socket.cpp
|
|
|
|
SocketThreads.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
|
|
|
|
IsThread.h
|
|
|
|
ListenThread.h
|
|
|
|
Queue.h
|
|
|
|
Semaphore.h
|
|
|
|
Socket.h
|
|
|
|
SocketThreads.h
|
2014-10-21 08:49:53 -04:00
|
|
|
)
|
2014-07-18 03:48:22 -04:00
|
|
|
|
2014-07-18 16:26:43 -04:00
|
|
|
if(NOT MSVC)
|
|
|
|
add_library(OSSupport ${SRCS} ${HDRS})
|
2013-12-18 19:15:30 -05:00
|
|
|
|
2014-07-18 16:26:43 -04:00
|
|
|
if(UNIX)
|
2014-10-23 18:03:54 -04:00
|
|
|
if(NOT APPLE)
|
|
|
|
target_link_libraries(OSSupport rt)
|
|
|
|
endif()
|
|
|
|
|
2014-10-24 02:49:20 -04:00
|
|
|
target_link_libraries(OSSupport pthread)
|
2014-07-18 16:26:43 -04:00
|
|
|
endif()
|
2013-12-18 19:15:30 -05:00
|
|
|
endif()
|