blob: 167afb7844f524c813448d085f63657014147843 (
plain) (
tree)
|
|
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
IsThread.cpp
ListenThread.cpp
Network.cpp
NetworkSingleton.cpp
Semaphore.cpp
Socket.cpp
SocketThreads.cpp
StackTrace.cpp
)
SET (HDRS
CriticalSection.h
Errors.h
Event.h
File.h
GZipFile.h
IsThread.h
ListenThread.h
Network.h
NetworkSingleton.h
Queue.h
Semaphore.h
Socket.h
SocketThreads.h
StackTrace.h
)
if(NOT MSVC)
add_library(OSSupport ${SRCS} ${HDRS})
if(UNIX)
if(NOT APPLE)
target_link_libraries(OSSupport rt)
endif()
target_link_libraries(OSSupport pthread)
endif()
endif()
|