-
Notifications
You must be signed in to change notification settings - Fork 149
/
CMakeLists.txt
142 lines (129 loc) · 4.4 KB
/
CMakeLists.txt
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
include( XRootDCommon )
if( BUILD_LIBEVENT )
include_directories( ${LIBEVENT_INCLUDE_DIR} )
set( LIBEVENT_POLLER_FILES
XrdClPollerLibEvent.cc
XrdClPollerLibEvent.hh )
else()
set( LIBEVENT_POLLER_FILES "" )
endif()
#-------------------------------------------------------------------------------
# Shared library version
#-------------------------------------------------------------------------------
set( XRD_CL_VERSION 1.0.1 )
set( XRD_CL_SOVERSION 1 )
#-------------------------------------------------------------------------------
# The XrdCl lib
#-------------------------------------------------------------------------------
add_library(
XrdCl
SHARED
XrdClLog.cc XrdClLog.hh
XrdClUtils.cc XrdClUtils.hh
XrdClOptimizers.hh
XrdClConstants.hh
XrdClEnv.cc XrdClEnv.hh
XrdClDefaultEnv.cc XrdClDefaultEnv.hh
XrdClURL.cc XrdClURL.hh
XrdClStatus.cc XrdClStatus.hh
XrdClSocket.cc XrdClSocket.hh
XrdClPoller.hh
XrdClPollerFactory.cc XrdClPollerFactory.hh
XrdClPollerBuiltIn.cc XrdClPollerBuiltIn.hh
XrdClPostMaster.cc XrdClPostMaster.hh
XrdClPostMasterInterfaces.hh
XrdClChannel.cc XrdClChannel.hh
XrdClStream.cc XrdClStream.hh
XrdClXRootDTransport.cc XrdClXRootDTransport.hh
XrdClInQueue.cc XrdClInQueue.hh
XrdClOutQueue.cc XrdClOutQueue.hh
XrdClTaskManager.cc XrdClTaskManager.hh
XrdClSIDManager.cc XrdClSIDManager.hh
XrdClFileSystem.cc XrdClFileSystem.hh
XrdClXRootDMsgHandler.cc XrdClXRootDMsgHandler.hh
XrdClBuffer.hh
XrdClMessage.hh
XrdClMessageUtils.cc XrdClMessageUtils.hh
XrdClXRootDResponses.cc XrdClXRootDResponses.hh
XrdClRequestSync.hh
XrdClFile.cc XrdClFile.hh
XrdClFileStateHandler.cc XrdClFileStateHandler.hh
XrdClCopyProcess.cc XrdClCopyProcess.hh
XrdClClassicCopyJob.cc XrdClClassicCopyJob.hh
XrdClThirdPartyCopyJob.cc XrdClThirdPartyCopyJob.hh
XrdClAsyncSocketHandler.cc XrdClAsyncSocketHandler.hh
XrdClChannelHandlerList.cc XrdClChannelHandlerList.hh
XrdClForkHandler.cc XrdClForkHandler.hh
XrdClCheckSumManager.cc XrdClCheckSumManager.hh
XrdClTransportManager.cc XrdClTransportManager.hh
XrdClSyncQueue.hh
XrdClJobManager.cc XrdClJobManager.hh
XrdClResponseJob.hh
XrdClFileTimer.cc XrdClFileTimer.hh
${LIBEVENT_POLLER_FILES}
)
target_link_libraries(
XrdCl
XrdUtils
pthread
dl
${LIBEVENT_LIB}
${LIBEVENTPTHREADS_LIB})
set_target_properties(
XrdCl
PROPERTIES
VERSION ${XRD_CL_VERSION}
SOVERSION ${XRD_CL_SOVERSION} )
#-------------------------------------------------------------------------------
# xrdfs
#-------------------------------------------------------------------------------
add_executable(
xrdfs
XrdClFS.cc
XrdClFSExecutor.cc XrdClFSExecutor.hh )
target_link_libraries(
xrdfs
XrdCl
${READLINE_LIBRARY}
${NCURSES_LIBRARY} )
#-------------------------------------------------------------------------------
# xrdcopy
#-------------------------------------------------------------------------------
add_executable(
xrdcopy
XrdClCopy.cc )
target_link_libraries(
xrdcopy
XrdCl
XrdAppUtils )
#-------------------------------------------------------------------------------
# Install
#-------------------------------------------------------------------------------
install(
TARGETS XrdCl xrdfs xrdcopy
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} )
install(
FILES
XrdClAnyObject.hh
XrdClBuffer.hh
XrdClConstants.hh
XrdClCopyProcess.hh
XrdClDefaultEnv.hh
XrdClEnv.hh
XrdClFile.hh
XrdClFileSystem.hh
XrdClMessage.hh
XrdClMonitor.hh
XrdClPostMaster.hh
XrdClPostMasterInterfaces.hh
XrdClTransportManager.hh
XrdClStatus.hh
XrdClURL.hh
XrdClXRootDResponses.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/xrootd/XrdCl )
install(
FILES
${PROJECT_SOURCE_DIR}/docs/man/xrdfs.1
${PROJECT_SOURCE_DIR}/docs/man/xrdcopy.1
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 )