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/XrdPosixCacheBC.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/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} )