Skip to content
Snippets Groups Projects
Commit b477f555 authored by Attila Krasznahorkay's avatar Attila Krasznahorkay Committed by Graeme Stewart
Browse files

Taught the package how to build with CMake when tdaq-common is not available...

Taught the package how to build with CMake when tdaq-common is not available (ByteStreamData-01-08-26)

2016-11-04 Attila Krasznahorkay <Attila.Krasznahorkay@cern.ch>
	* Taught the package how to build without tdaq-common. As it
	  is the case in AthAnalysisBase.
	* Removed the executable flag from the source files of the
	  package.
	* Tagging as ByteStreamData-01-08-26


Former-commit-id: 31c60ca7
parent ef745e07
No related merge requests found
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
# $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 )
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment