Skip to content
Snippets Groups Projects
Commit 31c60ca7 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
parent 76f3c148
No related branches found
No related tags found
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 # Package: ByteStreamData
################################################################################ ################################################################################
...@@ -6,36 +7,38 @@ ...@@ -6,36 +7,38 @@
atlas_subdir( ByteStreamData ) atlas_subdir( ByteStreamData )
# Declare the package's dependencies: # Declare the package's dependencies:
atlas_depends_on_subdirs( PUBLIC atlas_depends_on_subdirs(
Control/CLIDSvc PUBLIC
Control/DataModel Control/CLIDSvc
Control/SGTools ) Control/DataModel
Control/SGTools )
# External dependencies: # External dependencies:
find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread )
find_package( tdaq-common ) 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: # Component(s) in the package:
atlas_add_library( ByteStreamData atlas_add_library( ByteStreamData
src/ROBData.cxx ByteStreamData/*.h
src/ByteStreamMetadata.cxx src/ROBData.cxx
PUBLIC_HEADERS ByteStreamData src/ByteStreamMetadata.cxx
INCLUDE_DIRS ${TDAQ-COMMON_INCLUDE_DIRS} PUBLIC_HEADERS ByteStreamData
PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${extra_inc}
LINK_LIBRARIES ${TDAQ-COMMON_LIBRARIES} DataModel SGTools LINK_LIBRARIES DataModel SGTools ${extra_lib} )
PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} )
atlas_add_library( ByteStreamData_test atlas_add_library( ByteStreamData_test
src/ROBData_t.cxx src/ROBData_t.cxx
PUBLIC_HEADERS ByteStreamData NO_PUBLIC_HEADERS
INCLUDE_DIRS ${TDAQ-COMMON_INCLUDE_DIRS} LINK_LIBRARIES ByteStreamData )
PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
LINK_LIBRARIES ${TDAQ-COMMON_LIBRARIES} DataModel SGTools ByteStreamData
PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} )
atlas_add_dictionary( ByteStreamDataDict atlas_add_dictionary( ByteStreamDataDict
ByteStreamData/ByteStreamDataDict.h ByteStreamData/ByteStreamDataDict.h
ByteStreamData/selection.xml ByteStreamData/selection.xml
INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${TDAQ-COMMON_INCLUDE_DIRS} LINK_LIBRARIES ByteStreamData )
LINK_LIBRARIES ${ROOT_LIBRARIES} ${TDAQ-COMMON_LIBRARIES} DataModel SGTools ByteStreamData ByteStreamData_test )
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