-
Notifications
You must be signed in to change notification settings - Fork 149
/
XrdPosix.cmake
80 lines (71 loc) · 2.81 KB
/
XrdPosix.cmake
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
include( XRootDCommon )
#-------------------------------------------------------------------------------
# Shared library version
#-------------------------------------------------------------------------------
set( XRD_POSIX_VERSION 2.0.0 )
set( XRD_POSIX_SOVERSION 2 )
set( XRD_POSIX_PRELOAD_VERSION 1.0.0 )
set( XRD_POSIX_PRELOAD_SOVERSION 1 )
#-------------------------------------------------------------------------------
# The XrdPosix library
#-------------------------------------------------------------------------------
add_library(
XrdPosix
SHARED
XrdPosix/XrdPosixAdmin.cc XrdPosix/XrdPosixAdmin.hh
XrdPosix/XrdPosixCache.cc XrdPosix/XrdPosixCache.hh
XrdPosix/XrdPosixCallBack.cc XrdPosix/XrdPosixCallBack.hh
XrdPosix/XrdPosixConfig.cc XrdPosix/XrdPosixConfig.hh
XrdPosix/XrdPosixDir.cc XrdPosix/XrdPosixDir.hh
XrdPosix/XrdPosixFile.cc XrdPosix/XrdPosixFile.hh
XrdPosix/XrdPosixFileRH.cc XrdPosix/XrdPosixFileRH.hh
XrdPosix/XrdPosixMap.cc XrdPosix/XrdPosixMap.hh
XrdPosix/XrdPosixObject.cc XrdPosix/XrdPosixObject.hh
XrdPosix/XrdPosixObjGuard.hh
XrdPosix/XrdPosixPrepIO.cc XrdPosix/XrdPosixPrepIO.hh
XrdPosix/XrdPosixStats.hh
XrdPosix/XrdPosixTrace.hh
XrdPosix/XrdPosixXrootd.cc XrdPosix/XrdPosixXrootd.hh
XrdPosix/XrdPosixXrootdPath.cc XrdPosix/XrdPosixXrootdPath.hh
XrdPosix/XrdPosixOsDep.hh )
target_link_libraries(
XrdPosix
XrdCl
XrdUtils
pthread )
set_target_properties(
XrdPosix
PROPERTIES
VERSION ${XRD_POSIX_VERSION}
SOVERSION ${XRD_POSIX_SOVERSION}
INTERFACE_LINK_LIBRARIES ""
LINK_INTERFACE_LIBRARIES "" )
#-------------------------------------------------------------------------------
# The XrdPosixPreload library
#-------------------------------------------------------------------------------
add_library(
XrdPosixPreload
SHARED
XrdPosix/XrdPosixPreload32.cc
XrdPosix/XrdPosixPreload.cc
XrdPosix/XrdPosix.cc XrdPosix/XrdPosix.hh
XrdPosix/XrdPosixLinkage.cc XrdPosix/XrdPosixLinkage.hh
XrdPosix/XrdPosixExtern.hh
XrdPosix/XrdPosixOsDep.hh )
target_link_libraries(
XrdPosixPreload
XrdPosix
${CMAKE_DL_LIBS} )
set_target_properties(
XrdPosixPreload
PROPERTIES
VERSION ${XRD_POSIX_PRELOAD_VERSION}
SOVERSION ${XRD_POSIX_PRELOAD_SOVERSION}
INTERFACE_LINK_LIBRARIES ""
LINK_INTERFACE_LIBRARIES "" )
#-------------------------------------------------------------------------------
# Install
#-------------------------------------------------------------------------------
install(
TARGETS XrdPosix XrdPosixPreload
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} )