-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCMakeLists.txt
81 lines (71 loc) · 2.71 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# The name of the package:
atlas_subdir( JetReclustering )
# Dependency helper variable:
set( extra_deps )
if( XAOD_STANDALONE OR XAOD_ANALYSIS )
set( extra_deps Control/xAODRootAccess
PhysicsAnalysis/D3PDTools/EventLoop PRIVATE Event/xAOD/xAODEventInfo
Reconstruction/Jet/JetSubStructureMomentTools )
else()
set( extra_deps PRIVATE Control/xAODRootAccess Control/AthenaBaseComps
PhysicsAnalysis/POOLRootAccess GaudiKernel
Reconstruction/Jet/JetRecTools )
endif()
# The dependencies of the package:
atlas_depends_on_subdirs(
PUBLIC
Control/AthToolSupport/AsgTools
Reconstruction/Jet/JetInterface
Reconstruction/Jet/JetRec
${extra_deps}
Event/xAODJet )
# Libraries in the package:
if( XAOD_STANDALONE )
atlas_add_root_dictionary( JetReclusteringLib JetReclusteringCintDict
ROOT_HEADERS JetReclustering/JetReclusteringAlgo.h Root/LinkDef.h
EXTERNAL_PACKAGES ROOT )
atlas_add_library( JetReclusteringLib
JetReclustering/*.h Root/*.cxx ${JetReclusteringCintDict}
PUBLIC_HEADERS JetReclustering
LINK_LIBRARIES AsgTools JetInterface JetRecLib xAODRootAccess EventLoop
PRIVATE_LINK_LIBRARIES xAODJet xAODEventInfo
JetSubStructureMomentToolsLib )
else()
if( XAOD_ANALYSIS )
atlas_add_library( JetReclusteringLib
JetReclustering/*.h Root/*.cxx
PUBLIC_HEADERS JetReclustering
LINK_LIBRARIES AsgTools JetInterface JetRecLib
PRIVATE_LINK_LIBRARIES xAODJet xAODRootAccess )
atlas_add_component( JetReclustering
src/*.h src/*.cxx src/components/*.cxx
LINK_LIBRARIES AthenaBaseComps GaudiKernel JetInterface
JetReclusteringLib )
else()
atlas_add_library( JetReclusteringLib
JetReclustering/*.h Root/*.cxx
PUBLIC_HEADERS JetReclustering
LINK_LIBRARIES AsgTools JetInterface JetRecLib JetRecToolsLib
PRIVATE_LINK_LIBRARIES xAODJet xAODRootAccess )
atlas_add_component( JetReclustering
src/*.h src/*.cxx src/components/*.cxx
LINK_LIBRARIES AthenaBaseComps GaudiKernel JetInterface
JetReclusteringLib )
endif()
endif()
atlas_add_dictionary( JetReclusteringDict
JetReclustering/JetReclusteringDict.h
JetReclustering/selection.xml
LINK_LIBRARIES JetReclusteringLib )
# Test(s) in the package:
set( extra_libs )
if( NOT XAOD_STANDALONE )
set( extra_libs POOLRootAccessLib )
endif()
atlas_add_test( ut_JetReclusteringTool_test
SOURCES test/ut_JetReclusteringTool_test.cxx
INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
LINK_LIBRARIES ${ROOT_LIBRARIES} xAODRootAccess AsgTools JetInterface xAODJet
${extra_libs} )
# Install files from the package:
atlas_install_joboptions( share/*.py )