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

Made the package work with CMake (Asg_Test-02-05-02)

Former-commit-id: 43742294
parent 9346a2e3
No related branches found
No related tags found
8 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!28528Revert 63f845ae,!27054Atr20369 210,!26342Monopole: Handle fractionally charged particles
# $Id: CMakeLists.txt 782126 2016-11-03 13:55:04Z krasznaa $
# The name of the package:
atlas_subdir( Asg_Test )
# Read in the settings of the package from the files under cmt/:
file( READ ${CMAKE_CURRENT_SOURCE_DIR}/cmt/ReleaseSeries.txt
ROOTCORE_RELEASE_SERIES )
string( STRIP "${ROOTCORE_RELEASE_SERIES}" ROOTCORE_RELEASE_SERIES )
file( READ ${CMAKE_CURRENT_SOURCE_DIR}/cmt/TestFileData.txt
ASG_TEST_FILE_DATA )
string( STRIP "${ASG_TEST_FILE_DATA}" ASG_TEST_FILE_DATA )
file( READ ${CMAKE_CURRENT_SOURCE_DIR}/cmt/TestFileMC.txt
ASG_TEST_FILE_MC )
string( STRIP "${ASG_TEST_FILE_MC}" ASG_TEST_FILE_MC )
file( READ ${CMAKE_CURRENT_SOURCE_DIR}/cmt/TestFileMCAFII.txt
ASG_TEST_FILE_MC_AFII )
string( STRIP "${ASG_TEST_FILE_MC_AFII}" ASG_TEST_FILE_MC_AFII )
set( ROOTCORE_TEST_FILE ${ASG_TEST_FILE_MC} )
get_filename_component( ROOTCORE_TEST_DATA ${ROOTCORE_TEST_FILE} PATH )
# Create the CMake file that will be used to generate the environment config:
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/cmake/Asg_TestEnvironmentConfig.cmake.in
${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/Asg_TestEnvironmentConfig.cmake
@ONLY )
set( Asg_TestEnvironment_DIR
${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}
CACHE PATH "Location of Asg_TestEnvironmentConfig.cmake" FORCE )
# Now find it:
find_package( Asg_TestEnvironment )
# $Id: Asg_TestEnvironmentConfig.cmake.in 782126 2016-11-03 13:55:04Z krasznaa $
#
# File configuring the ASG environment variables.
#
# Set the environment variables:
set( ASG_TESTENVIRONMENT_ENVIRONMENT
FORCESET ROOTCORE_RELEASE_SERIES @ROOTCORE_RELEASE_SERIES@
FORCESET ASG_TEST_FILE_DATA @ASG_TEST_FILE_DATA@
FORCESET ASG_TEST_FILE_MC @ASG_TEST_FILE_MC@
FORCESET ASG_TEST_FILE_MC_AFII @ASG_TEST_FILE_MC_AFII@
FORCESET ROOTCORE_TEST_FILE @ROOTCORE_TEST_FILE@
FORCESET ROOTCORE_TEST_DATA @ROOTCORE_TEST_DATA@ )
# Signal that the module was found:
set( ASG_TESTENVIRONMENT_FOUND TRUE )
# this makefile also gets parsed by shell scripts
# therefore it does not support full make syntax and features
# edit with care
# for full documentation check:
# https://twiki.cern.ch/twiki/bin/viewauth/Atlas/RootCore#Package_Makefile
# the name of the package:
PACKAGE = Asg_Test
# the libraries to link with this one:
PACKAGE_PRELOAD =
# additional compilation flags to pass (not propagated to dependent packages):
PACKAGE_CXXFLAGS =
# additional compilation flags to pass (propagated to dependent packages):
PACKAGE_OBJFLAGS = -DROOTCORE_RELEASE_SERIES=$ROOTCORE_RELEASE_SERIES -DROOTCORE_TEST_FILE=\"$ROOTCORE_TEST_FILE\" -DROOTCORE_TEST_DATA=\"$ROOTCORE_TEST_DATA\" -DASG_TEST_FILE_DATA=\"$ASG_TEST_FILE_DATA\" -DASG_TEST_FILE_MC=\"$ASG_TEST_FILE_MC\" -DASG_TEST_FILE_MCAFII=\"$ASG_TEST_FILE_MCAFII\"
# additional linker flags to pass (for compiling the library):
PACKAGE_LDFLAGS =
# additional linker flags to pass (for compiling binaries):
PACKAGE_BINFLAGS =
# additional linker flags to pass (propagated to client libraries):
PACKAGE_LIBFLAGS =
# the list of packages we depend on:
PACKAGE_DEP =
# the list of packages we use if present, but that we can work without :
PACKAGE_TRYDEP =
# list pattern of scripts to link directly into binary path:
PACKAGE_SCRIPTS =
# whether to use pedantic compilation:
PACKAGE_PEDANTIC = 1
# whether to turn *off* optimization (set to dict to do it only for
# dictionaries):
PACKAGE_NOOPT = 0
# whether to build no library (needs to be set if no source files are
# present):
PACKAGE_NOCC = 1
# whether we build a reflex dictionary:
PACKAGE_REFLEX = 0
# the auto-dependency setting:
PACKAGE_AUTODEP = 1
include $(ROOTCOREDIR)/Makefile-common
25
/afs/cern.ch/atlas/project/PAT/xAODs/r8601/data15_13TeV.00284285.physics_Main.recon.AOD.r8601/AOD.09617210._008306.pool.root.1
/afs/cern.ch/atlas/project/PAT/xAODs/r8565/valid2.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.recon.AOD.e4993_s2887_r8565/AOD.09534072._000257.pool.root.1
/afs/cern.ch/user/a/asgbase/patspace/xAODs/a818/mc15_13TeV.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.merge.AOD.e3698_a766_a818_r7676/AOD.07919492._000100.pool.root.1
package Asg_Test
author NLAA
use AtlasPolicy AtlasPolicy-*
macro Asg_Test_ReleaseSeries "ASGSeries`cat $(Asg_Test_root)/cmt/ReleaseSeries.txt`"
apply_tag $(Asg_Test_ReleaseSeries)
macro Asg_Test_ReleaseSeriesNum "`cat $(Asg_Test_root)/cmt/ReleaseSeries.txt`"
set ROOTCORE_RELEASE_SERIES $(Asg_Test_ReleaseSeriesNum)
macro Asg_Test_TestFile "`cat $(Asg_Test_root)/cmt/TestFileMC.txt`"
set ROOTCORE_TEST_FILE $(Asg_Test_TestFile)
macro Asg_Test_TestFileMC "`cat $(Asg_Test_root)/cmt/TestFileMC.txt`"
set ASG_TEST_FILE_MC $(Asg_Test_TestFileMC)
macro Asg_Test_TestFileData "`cat $(Asg_Test_root)/cmt/TestFileData.txt`"
set ASG_TEST_FILE_DATA $(Asg_Test_TestFileData)
macro Asg_Test_TestFileMCAFII "`cat $(Asg_Test_root)/cmt/TestFileMCAFII.txt`"
set ASG_TEST_FILE_MC_AFII $(Asg_Test_TestFileMCAFII)
Asg_Test_Dir=`dirname $1`
setenv ROOTCORE_RELEASE_SERIES `cat $Asg_Test_Dir/ReleaseSeries.txt`
setenv ASG_TEST_FILE_DATA `cat $Asg_Test_Dir/TestFileData.txt`
setenv ASG_TEST_FILE_MC `cat $Asg_Test_Dir/TestFileMC.txt`
setenv ASG_TEST_FILE_MC_AFII `cat $Asg_Test_Dir/TestFileMCAFII.txt`
setenv ROOTCORE_TEST_FILE `cat $Asg_Test_Dir/TestFileMC.txt`
setenv ROOTCORE_TEST_DATA "`dirname $ROOTCORE_TEST_FILE | xargs dirname`"
Asg_Test_Dir=`dirname $1`
export ROOTCORE_RELEASE_SERIES=`cat $Asg_Test_Dir/ReleaseSeries.txt`
export ASG_TEST_FILE_DATA=`cat $Asg_Test_Dir/TestFileData.txt`
export ASG_TEST_FILE_MC=`cat $Asg_Test_Dir/TestFileMC.txt`
export ASG_TEST_FILE_MC_AFII=`cat $Asg_Test_Dir/TestFileMCAFII.txt`
export ROOTCORE_TEST_FILE=`cat $Asg_Test_Dir/TestFileMC.txt`
export ROOTCORE_TEST_DATA="`dirname $ROOTCORE_TEST_FILE | xargs dirname`"
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