2013-12-10 18:41:43 +00:00
|
|
|
|
|
|
|
cmake_minimum_required (VERSION 2.6)
|
|
|
|
project (MCServer)
|
|
|
|
|
|
|
|
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
|
|
|
|
2014-07-18 07:48:22 +00:00
|
|
|
SET (SRCS
|
|
|
|
CriticalSection.cpp
|
|
|
|
Errors.cpp
|
|
|
|
Event.cpp
|
|
|
|
File.cpp
|
|
|
|
GZipFile.cpp
|
|
|
|
IsThread.cpp
|
|
|
|
ListenThread.cpp
|
|
|
|
Semaphore.cpp
|
|
|
|
Sleep.cpp
|
|
|
|
Socket.cpp
|
|
|
|
SocketThreads.cpp
|
2014-11-29 22:06:10 +00:00
|
|
|
StackTrace.cpp
|
2014-07-18 07:48:22 +00:00
|
|
|
Thread.cpp
|
2014-11-29 22:06:10 +00:00
|
|
|
Timer.cpp
|
|
|
|
)
|
2014-07-18 07:48:22 +00:00
|
|
|
|
|
|
|
SET (HDRS
|
|
|
|
CriticalSection.h
|
|
|
|
Errors.h
|
|
|
|
Event.h
|
|
|
|
File.h
|
|
|
|
GZipFile.h
|
|
|
|
IsThread.h
|
|
|
|
ListenThread.h
|
|
|
|
Queue.h
|
|
|
|
Semaphore.h
|
|
|
|
Sleep.h
|
|
|
|
Socket.h
|
|
|
|
SocketThreads.h
|
2014-11-29 22:06:10 +00:00
|
|
|
StackTrace.h
|
2014-07-18 07:48:22 +00:00
|
|
|
Thread.h
|
2014-11-29 22:06:10 +00:00
|
|
|
Timer.h
|
|
|
|
)
|
2014-07-18 07:48:22 +00:00
|
|
|
|
2014-07-18 20:26:43 +00:00
|
|
|
if(NOT MSVC)
|
|
|
|
add_library(OSSupport ${SRCS} ${HDRS})
|
2013-12-19 00:15:30 +00:00
|
|
|
|
2014-10-24 06:49:20 +00:00
|
|
|
if(UNIX)
|
2014-10-23 22:03:54 +00:00
|
|
|
if(NOT APPLE)
|
|
|
|
target_link_libraries(OSSupport rt)
|
|
|
|
endif()
|
|
|
|
|
2014-10-24 06:49:20 +00:00
|
|
|
target_link_libraries(OSSupport pthread)
|
|
|
|
endif()
|
2013-12-19 00:15:30 +00:00
|
|
|
endif()
|