From a6ec61d24974607a669002e8bb5b3cd2d0c0a36d Mon Sep 17 00:00:00 2001 From: Attila Krasznahorkay <krasznaa@cern.ch> Date: Thu, 17 Mar 2016 15:29:23 +0100 Subject: [PATCH] Adding a hand-written CMakeLists.txt file to the package (ByteStreamStoragePlugins-00-01-01) 2016-03-17 Attila Krasznahorkay <Attila.Krasznahorkay@cern.ch> * Added a hand-written CMakeLists.txt file to the package to build its libraries correctly. Finally fixing ATEAM-255. * Removed the executable flag from all of the files of the package. * Tagging as ByteStreamStoragePlugins-00-01-01 --- Event/ByteStreamStoragePlugins/CMakeLists.txt | 45 +++++++++++++++++++ .../ByteStreamStoragePlugins/cmt/requirements | 0 .../cmt/tdaq-common_requirements | 0 .../src/fReadCastor.cxx | 0 .../src/fReadCastor.h | 0 .../src/fReaddCache.cxx | 0 .../src/fReaddCache.h | 0 7 files changed, 45 insertions(+) create mode 100644 Event/ByteStreamStoragePlugins/CMakeLists.txt mode change 100755 => 100644 Event/ByteStreamStoragePlugins/cmt/requirements mode change 100755 => 100644 Event/ByteStreamStoragePlugins/cmt/tdaq-common_requirements mode change 100755 => 100644 Event/ByteStreamStoragePlugins/src/fReadCastor.cxx mode change 100755 => 100644 Event/ByteStreamStoragePlugins/src/fReadCastor.h mode change 100755 => 100644 Event/ByteStreamStoragePlugins/src/fReaddCache.cxx mode change 100755 => 100644 Event/ByteStreamStoragePlugins/src/fReaddCache.h diff --git a/Event/ByteStreamStoragePlugins/CMakeLists.txt b/Event/ByteStreamStoragePlugins/CMakeLists.txt new file mode 100644 index 00000000000..3f13735079e --- /dev/null +++ b/Event/ByteStreamStoragePlugins/CMakeLists.txt @@ -0,0 +1,45 @@ +# $Id: CMakeLists.txt 730743 2016-03-17 15:28:57Z krasznaa $ +################################################################################ +# Package: ByteStreamStoragePlugins +################################################################################ + +# Declare the package name: +atlas_subdir( ByteStreamStoragePlugins ) + +# External dependencies: +find_package( Boost ) +find_package( CASTOR COMPONENTS rfio ) +find_package( Xrootd COMPONENTS PosixPreload ) +find_package( dcache_client ) +find_package( tdaq-common COMPONENTS ers ) + +# Make sure that libraries are linked correctly: +string( REPLACE "-Wl,--as-needed" "" CMAKE_SHARED_LINKER_FLAGS + "${CMAKE_SHARED_LINKER_FLAGS}" ) + +# Component(s) in the package: +atlas_add_library( fReadCastor + src/fReadCastor.h src/fReadCastor.cxx + NO_PUBLIC_HEADERS + PRIVATE_INCLUDE_DIRS ${TDAQ-COMMON_INCLUDE_DIRS} ${CASTOR_INCLUDE_DIRS} + ${Boost_INCLUDE_DIRS} + PRIVATE_LINK_LIBRARIES ${TDAQ-COMMON_LIBRARIES} ${CASTOR_LIBRARIES} + ${Boost_LIBRARIES} ) + +atlas_add_library( fReadXRootD + src/fReadXRootD.h src/fReadXRootD.cxx + NO_PUBLIC_HEADERS + PRIVATE_INCLUDE_DIRS ${TDAQ-COMMON_INCLUDE_DIRS} ${XROOTD_INCLUDE_DIRS} + ${Boost_INCLUDE_DIRS} + PRIVATE_LINK_LIBRARIES ${TDAQ-COMMON_LIBRARIES} ${XROOTD_LIBRARIES} + ${Boost_LIBRARIES} + PRIVATE_DEFINITIONS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE + -D_FILE_OFFSET_BITS=64 ) + +atlas_add_library( fReaddCache + src/fReaddCache.h src/fReaddCache.cxx + NO_PUBLIC_HEADERS + PRIVATE_INCLUDE_DIRS ${TDAQ-COMMON_INCLUDE_DIRS} + ${DCACHE_CLIENT_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} + PRIVATE_LINK_LIBRARIES ${TDAQ-COMMON_LIBRARIES} ${DCACHE_CLIENT_LIBRARIES} + ${Boost_LIBRARIES} ) diff --git a/Event/ByteStreamStoragePlugins/cmt/requirements b/Event/ByteStreamStoragePlugins/cmt/requirements old mode 100755 new mode 100644 diff --git a/Event/ByteStreamStoragePlugins/cmt/tdaq-common_requirements b/Event/ByteStreamStoragePlugins/cmt/tdaq-common_requirements old mode 100755 new mode 100644 diff --git a/Event/ByteStreamStoragePlugins/src/fReadCastor.cxx b/Event/ByteStreamStoragePlugins/src/fReadCastor.cxx old mode 100755 new mode 100644 diff --git a/Event/ByteStreamStoragePlugins/src/fReadCastor.h b/Event/ByteStreamStoragePlugins/src/fReadCastor.h old mode 100755 new mode 100644 diff --git a/Event/ByteStreamStoragePlugins/src/fReaddCache.cxx b/Event/ByteStreamStoragePlugins/src/fReaddCache.cxx old mode 100755 new mode 100644 diff --git a/Event/ByteStreamStoragePlugins/src/fReaddCache.h b/Event/ByteStreamStoragePlugins/src/fReaddCache.h old mode 100755 new mode 100644 -- GitLab