blob: 6f609c519afff676a4f2fa0fc1d0210083aa277f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
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
)
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
)
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()
|