diff --git a/Event/ByteStreamData/ByteStreamData/ByteStream.h b/Event/ByteStreamData/ByteStreamData/ByteStream.h old mode 100755 new mode 100644 diff --git a/Event/ByteStreamData/ByteStreamData/ByteStreamUserMetadata.h b/Event/ByteStreamData/ByteStreamData/ByteStreamUserMetadata.h old mode 100755 new mode 100644 diff --git a/Event/ByteStreamData/ByteStreamData/ROBData.h b/Event/ByteStreamData/ByteStreamData/ROBData.h old mode 100755 new mode 100644 diff --git a/Event/ByteStreamData/ByteStreamData/RawEvent.h b/Event/ByteStreamData/ByteStreamData/RawEvent.h old mode 100755 new mode 100644 diff --git a/Event/ByteStreamData/CMakeLists.txt b/Event/ByteStreamData/CMakeLists.txt index 4692a1894ea25c8927e2e8023ba6183e7ef7bb35..851553d77bea1ede8c23567094c5cbdfd7f5ac06 100644 --- a/Event/ByteStreamData/CMakeLists.txt +++ b/Event/ByteStreamData/CMakeLists.txt @@ -1,3 +1,4 @@ +# $Id: CMakeLists.txt 782284 2016-11-04 08:07:16Z krasznaa $ ################################################################################ # Package: ByteStreamData ################################################################################ @@ -6,36 +7,38 @@ atlas_subdir( ByteStreamData ) # Declare the package's dependencies: -atlas_depends_on_subdirs( PUBLIC - Control/CLIDSvc - Control/DataModel - Control/SGTools ) +atlas_depends_on_subdirs( + PUBLIC + Control/CLIDSvc + Control/DataModel + Control/SGTools ) # External dependencies: -find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread ) find_package( tdaq-common ) +# Treat tdaq-common as an optional dependency: +set( extra_inc ) +set( extra_lib ) +if( TDAQ-COMMON_FOUND ) + set( extra_inc INCLUDE_DIRS ${TDAQ-COMMON_INCLUDE_DIRS} ) + set( extra_lib ${TDAQ-COMMON_LIBRARIES} ) +endif() + # Component(s) in the package: atlas_add_library( ByteStreamData - src/ROBData.cxx - src/ByteStreamMetadata.cxx - PUBLIC_HEADERS ByteStreamData - INCLUDE_DIRS ${TDAQ-COMMON_INCLUDE_DIRS} - PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} - LINK_LIBRARIES ${TDAQ-COMMON_LIBRARIES} DataModel SGTools - PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} ) + ByteStreamData/*.h + src/ROBData.cxx + src/ByteStreamMetadata.cxx + PUBLIC_HEADERS ByteStreamData + ${extra_inc} + LINK_LIBRARIES DataModel SGTools ${extra_lib} ) atlas_add_library( ByteStreamData_test - src/ROBData_t.cxx - PUBLIC_HEADERS ByteStreamData - INCLUDE_DIRS ${TDAQ-COMMON_INCLUDE_DIRS} - PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} - LINK_LIBRARIES ${TDAQ-COMMON_LIBRARIES} DataModel SGTools ByteStreamData - PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} ) + src/ROBData_t.cxx + NO_PUBLIC_HEADERS + LINK_LIBRARIES ByteStreamData ) atlas_add_dictionary( ByteStreamDataDict - ByteStreamData/ByteStreamDataDict.h - ByteStreamData/selection.xml - INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${TDAQ-COMMON_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${TDAQ-COMMON_LIBRARIES} DataModel SGTools ByteStreamData ByteStreamData_test ) - + ByteStreamData/ByteStreamDataDict.h + ByteStreamData/selection.xml + LINK_LIBRARIES ByteStreamData ) diff --git a/Event/ByteStreamData/cmt/requirements b/Event/ByteStreamData/cmt/requirements old mode 100755 new mode 100644 diff --git a/Event/ByteStreamData/src/ROBData.cxx b/Event/ByteStreamData/src/ROBData.cxx old mode 100755 new mode 100644 diff --git a/Event/ByteStreamData/src/ROBData_t.cxx b/Event/ByteStreamData/src/ROBData_t.cxx old mode 100755 new mode 100644