aboutsummarylogtreecommitdiffstats
path: root/cmake.patch
blob: 9630f8c486a62e24fac5047d09c0167e2fea3c9f (plain)
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
From 0f5bf9d9e29b38f680ebcaf979921989a54af915 Mon Sep 17 00:00:00 2001
From: Joschka Lingemann <joschka.lingemann@cern.ch>
Date: Wed, 23 Nov 2016 18:02:52 +0100
Subject: [PATCH 03/31] Add missing install targets

- header files for some ExRoot* classes
- all pcm files generated when ROOT version > 6.x
---
 classes/CMakeLists.txt                 |  7 +++++++
 display/CMakeLists.txt                 |  7 +++++++
 external/ExRootAnalysis/CMakeLists.txt | 13 ++++++++++++-
 modules/CMakeLists.txt                 | 12 +++++++++++-
 4 files changed, 37 insertions(+), 2 deletions(-)

diff --git a/delphes-3.4.0/classes/CMakeLists.txt b/delphes-3.4.0/classes/CMakeLists.txt
index fd7fb15..51b353c 100644
--- a/delphes-3.4.0/classes/CMakeLists.txt
+++ b/delphes-3.4.0/classes/CMakeLists.txt
@@ -20,3 +20,10 @@ add_library(classes OBJECT ${sources} ClassesDict.cxx)
 
 # install public headers
 install(FILES ${headers} DESTINATION include/classes)
+
+# install pcms if they are created
+if (${ROOT_VERSION} GREATER 6)
+  install(FILES
+      ${PROJECT_BINARY_DIR}/classes/libClassesDict_rdict.pcm
+      DESTINATION lib)
+endif()
diff --git a/delphes-3.4.0/display/CMakeLists.txt b/delphes-3.4.0/display/CMakeLists.txt
index d11b9c6..43d208e 100644
--- a/delphes-3.4.0/display/CMakeLists.txt
+++ b/delphes-3.4.0/display/CMakeLists.txt
@@ -11,3 +11,10 @@ list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/DisplayLinkDef.h)
 DELPHES_GENERATE_DICTIONARY(DisplayDict ${headers} LINKDEF DisplayLinkDef.h)
 
 add_library(display OBJECT ${sources} DisplayDict.cxx)
+
+# install pcms if they are created
+if (${ROOT_VERSION} GREATER 6)
+  install(FILES
+      ${PROJECT_BINARY_DIR}/external/DisplayDict_rdict.pcm
+      DESTINATION lib)
+endif()
diff --git a/delphes-3.4.0/external/ExRootAnalysis/CMakeLists.txt b/delphes-3.4.0/external/ExRootAnalysis/CMakeLists.txt
index 6ac4873..6cf2043 100644
--- a/delphes-3.4.0/external/ExRootAnalysis/CMakeLists.txt
+++ b/delphes-3.4.0/external/ExRootAnalysis/CMakeLists.txt
@@ -12,4 +12,15 @@ DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict ${headers} LINKDEF ExRootAnalysis
 add_library(ExRootAnalysis OBJECT ${sources} ExRootAnalysisDict.cxx)
 
 # install headers needed by public Delphes headers to include/
-install(FILES ExRootTask.h ExRootConfReader.h DESTINATION include/ExRootAnalysis)
+install(FILES ExRootTask.h ExRootConfReader.h ExRootTreeWriter.h ExRootTreeBranch.h
+        DESTINATION include/ExRootAnalysis)
+
+# install all LinkDef files into the same folder to ease user environment
+install(FILES ExRootAnalysisLinkDef.h DESTINATION include)
+
+# install pcms if they are created
+if (${ROOT_VERSION} GREATER 6)
+  install(FILES
+      ${PROJECT_BINARY_DIR}/external/ExRootAnalysis/libExRootAnalysisDict_rdict.pcm
+      DESTINATION lib)
+endif()
diff --git a/delphes-3.4.0/modules/CMakeLists.txt b/delphes-3.4.0/modules/CMakeLists.txt
index 0b0604f..c2d7394 100644
--- a/delphes-3.4.0/modules/CMakeLists.txt
+++ b/delphes-3.4.0/modules/CMakeLists.txt
@@ -19,4 +19,14 @@ list(REMOVE_ITEM sources ${CMAKE_CURRENT_SOURCE_DIR}/PileUpMergerPythia8.cc)
 add_library(modules OBJECT ${sources} FastJetDict.cxx ModulesDict.cxx)
 
 # install public headers
-install(FILES Delphes.h DESTINATION include/modules)
+install(FILES Delphes.h
+        DESTINATION include/modules
+)
+
+# install pcms if they are created
+if (${ROOT_VERSION} GREATER 6)
+  install(FILES
+      ${PROJECT_BINARY_DIR}/modules/libModulesDict_rdict.pcm
+      ${PROJECT_BINARY_DIR}/modules/libFastJetDict_rdict.pcm
+      DESTINATION lib)
+endif()
-- 
2.11.1

From 781e31188326232df2e0b57b10da09395d4301a1 Mon Sep 17 00:00:00 2001
From: Michele Selvaggi <michele.selvaggi@uclouvain.be>
Date: Thu, 24 Nov 2016 10:52:50 +0100
Subject: [PATCH 04/31] fixed typo in display cmake list

---
 display/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/delphes-3.4.0/display/CMakeLists.txt b/delphes-3.4.0/display/CMakeLists.txt
index 43d208e..b3a9efd 100644
--- a/delphes-3.4.0/display/CMakeLists.txt
+++ b/delphes-3.4.0/display/CMakeLists.txt
@@ -15,6 +15,6 @@ add_library(display OBJECT ${sources} DisplayDict.cxx)
 # install pcms if they are created
 if (${ROOT_VERSION} GREATER 6)
   install(FILES
-      ${PROJECT_BINARY_DIR}/external/DisplayDict_rdict.pcm
+      ${PROJECT_BINARY_DIR}/display/libDisplayDict_rdict.pcm
       DESTINATION lib)
 endif()
-- 
2.11.1

From 764f536462b646fdd0f033cc71c2b1539df6296a Mon Sep 17 00:00:00 2001
From: Michele Selvaggi <michele.selvaggi@uclouvain.be>
Date: Thu, 24 Nov 2016 10:53:49 +0100
Subject: [PATCH 05/31] added cards to installation with cmake

---
 CMakeLists.txt       | 1 +
 cards/CMakeLists.txt | 8 ++++++++
 2 files changed, 9 insertions(+)
 create mode 100644 cards/CMakeLists.txt

diff --git a/delphes-3.4.0/CMakeLists.txt b/delphes-3.4.0/CMakeLists.txt
index 5429d0f..904f6c6 100644
--- a/delphes-3.4.0/CMakeLists.txt
+++ b/delphes-3.4.0/CMakeLists.txt
@@ -31,6 +31,7 @@ add_subdirectory(examples)
 add_subdirectory(external)
 add_subdirectory(modules)
 add_subdirectory(readers)
+add_subdirectory(cards)
 
 add_library(Delphes SHARED
   $<TARGET_OBJECTS:classes> 
diff --git a/delphes-3.4.0/cards/CMakeLists.txt b/delphes-3.4.0/cards/CMakeLists.txt
new file mode 100644
index 0000000..0af8376
--- /dev/null
+++ b/delphes-3.4.0/cards/CMakeLists.txt
@@ -0,0 +1,8 @@
+file(GLOB confDir *.tcl)
+file(GLOB confFccDir FCC/*.tcl)
+file(GLOB confCmsPhase2Dir CMS_PhaseII/*.tcl)
+
+# copy *.tcl files into cards
+install(FILES ${confDir} DESTINATION cards)
+install(FILES ${confFccDir} DESTINATION cards/FCC)
+install(FILES ${confCmsPhase2Dir} DESTINATION cards/CMS_PhaseII)
-- 
2.11.1

From 7d8363633177b762d8293d313bd4ce0cbbc397e8 Mon Sep 17 00:00:00 2001
From: JP-Ellis <josh@jpellis.me>
Date: Fri, 27 Jan 2017 20:04:35 +1100
Subject: [PATCH 23/31] Include all ExRootAnalysis headers

When the headers are installed by `make install`, they are all installed in:
```
$INSTALL_PREFIX/include/ExRootAnalysis
```

In addition, one include directive has been fixed as per instructions in the
pull request.

Signed-off-by: JP-Ellis <josh@jpellis.me>
---
 examples/CaloGrid.cpp                  |  2 +-
 external/ExRootAnalysis/CMakeLists.txt | 14 ++++++++++++--
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/delphes-3.4.0/examples/CaloGrid.cpp b/delphes-3.4.0/examples/CaloGrid.cpp
index 5cc15b5..f466fa9 100644
--- a/delphes-3.4.0/examples/CaloGrid.cpp
+++ b/delphes-3.4.0/examples/CaloGrid.cpp
@@ -10,7 +10,7 @@
 
 #include "display/Delphes3DGeometry.h"
 #include "classes/DelphesClasses.h"
-#include "external/ExRootAnalysis/ExRootConfReader.h"
+#include "ExRootAnalysis/ExRootConfReader.h"
 
 #include "TCanvas.h"
 #include "TStyle.h"
diff --git a/delphes-3.4.0/external/ExRootAnalysis/CMakeLists.txt b/delphes-3.4.0/external/ExRootAnalysis/CMakeLists.txt
index 6cf2043..ca4bae3 100644
--- a/delphes-3.4.0/external/ExRootAnalysis/CMakeLists.txt
+++ b/delphes-3.4.0/external/ExRootAnalysis/CMakeLists.txt
@@ -12,8 +12,18 @@ DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict ${headers} LINKDEF ExRootAnalysis
 add_library(ExRootAnalysis OBJECT ${sources} ExRootAnalysisDict.cxx)
 
 # install headers needed by public Delphes headers to include/
-install(FILES ExRootTask.h ExRootConfReader.h ExRootTreeWriter.h ExRootTreeBranch.h
-        DESTINATION include/ExRootAnalysis)
+install(FILES
+  ExRootClassifier.h
+  ExRootConfReader.h
+  ExRootFilter.h
+  ExRootProgressBar.h
+  ExRootResult.h
+  ExRootTask.h
+  ExRootTreeBranch.h
+  ExRootTreeReader.h
+  ExRootTreeWriter.h
+  ExRootUtilities.h
+  DESTINATION include/ExRootAnalysis)
 
 # install all LinkDef files into the same folder to ease user environment
 install(FILES ExRootAnalysisLinkDef.h DESTINATION include)
-- 
2.11.1

From 8c872c8c104faa08d68022943bee71eae2c18b74 Mon Sep 17 00:00:00 2001
From: Pavel Demin <pavel-demin@outlook.com>
Date: Mon, 13 Feb 2017 16:08:08 +0100
Subject: [PATCH 28/31] remove ExRootAnalysisLinkDef.h from installation and
 simplify install command

---
 external/ExRootAnalysis/CMakeLists.txt | 18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)

diff --git a/delphes-3.4.0/external/ExRootAnalysis/CMakeLists.txt b/delphes-3.4.0/external/ExRootAnalysis/CMakeLists.txt
index ca4bae3..2658fe7 100644
--- a/delphes-3.4.0/external/ExRootAnalysis/CMakeLists.txt
+++ b/delphes-3.4.0/external/ExRootAnalysis/CMakeLists.txt
@@ -11,22 +11,8 @@ DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict ${headers} LINKDEF ExRootAnalysis
 
 add_library(ExRootAnalysis OBJECT ${sources} ExRootAnalysisDict.cxx)
 
-# install headers needed by public Delphes headers to include/
-install(FILES
-  ExRootClassifier.h
-  ExRootConfReader.h
-  ExRootFilter.h
-  ExRootProgressBar.h
-  ExRootResult.h
-  ExRootTask.h
-  ExRootTreeBranch.h
-  ExRootTreeReader.h
-  ExRootTreeWriter.h
-  ExRootUtilities.h
-  DESTINATION include/ExRootAnalysis)
-
-# install all LinkDef files into the same folder to ease user environment
-install(FILES ExRootAnalysisLinkDef.h DESTINATION include)
+# install public headers
+install(FILES ${headers} DESTINATION include/ExRootAnalysis)
 
 # install pcms if they are created
 if (${ROOT_VERSION} GREATER 6)
-- 
2.11.1

From 39e729dc24bbaede8e3f81f1dac65fa01a18a441 Mon Sep 17 00:00:00 2001
From: Pavel Demin <pavel-demin@outlook.com>
Date: Mon, 13 Feb 2017 16:10:52 +0100
Subject: [PATCH 29/31] fix formatting in modules/CMakeLists.txt

---
 modules/CMakeLists.txt | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/delphes-3.4.0/modules/CMakeLists.txt b/delphes-3.4.0/modules/CMakeLists.txt
index c2d7394..4ba0fe5 100644
--- a/delphes-3.4.0/modules/CMakeLists.txt
+++ b/delphes-3.4.0/modules/CMakeLists.txt
@@ -19,9 +19,7 @@ list(REMOVE_ITEM sources ${CMAKE_CURRENT_SOURCE_DIR}/PileUpMergerPythia8.cc)
 add_library(modules OBJECT ${sources} FastJetDict.cxx ModulesDict.cxx)
 
 # install public headers
-install(FILES Delphes.h
-        DESTINATION include/modules
-)
+install(FILES Delphes.h DESTINATION include/modules)
 
 # install pcms if they are created
 if (${ROOT_VERSION} GREATER 6)
-- 
2.11.1

From 102596aa0a166e071b5697caa104a865d6818ec9 Mon Sep 17 00:00:00 2001
From: Pavel Demin <pavel-demin@outlook.com>
Date: Mon, 13 Feb 2017 16:11:04 +0100
Subject: [PATCH 30/31] add DelphesDisplay target to CMakeLists.txt

---
 CMakeLists.txt         | 15 +++++++++++++--
 display/CMakeLists.txt |  6 ++++++
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/delphes-3.4.0/CMakeLists.txt b/delphes-3.4.0/CMakeLists.txt
index 904f6c6..d3e26ce 100644
--- a/delphes-3.4.0/CMakeLists.txt
+++ b/delphes-3.4.0/CMakeLists.txt
@@ -35,7 +35,6 @@ add_subdirectory(cards)
 
 add_library(Delphes SHARED
   $<TARGET_OBJECTS:classes> 
-  $<TARGET_OBJECTS:display>
   $<TARGET_OBJECTS:modules> 
   $<TARGET_OBJECTS:ExRootAnalysis>
   $<TARGET_OBJECTS:fastjet>
@@ -44,6 +43,18 @@ add_library(Delphes SHARED
   $<TARGET_OBJECTS:PUPPI>
 )
 
+add_library(DelphesDisplay SHARED
+  $<TARGET_OBJECTS:classes>
+  $<TARGET_OBJECTS:display>
+  $<TARGET_OBJECTS:modules>
+  $<TARGET_OBJECTS:ExRootAnalysis>
+  $<TARGET_OBJECTS:fastjet>
+  $<TARGET_OBJECTS:tcl>
+  $<TARGET_OBJECTS:Hector>
+  $<TARGET_OBJECTS:PUPPI>
+)
+
 target_link_Libraries(Delphes ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES})
+target_link_Libraries(DelphesDisplay ${ROOT_LIBRARIES} ${ROOT_COMPONENT_LIBRARIES})
 
-install(TARGETS Delphes DESTINATION lib)
+install(TARGETS Delphes DelphesDisplay DESTINATION lib)
diff --git a/delphes-3.4.0/display/CMakeLists.txt b/delphes-3.4.0/display/CMakeLists.txt
index b3a9efd..4886a1c 100644
--- a/delphes-3.4.0/display/CMakeLists.txt
+++ b/delphes-3.4.0/display/CMakeLists.txt
@@ -12,6 +12,12 @@ DELPHES_GENERATE_DICTIONARY(DisplayDict ${headers} LINKDEF DisplayLinkDef.h)
 
 add_library(display OBJECT ${sources} DisplayDict.cxx)
 
+# install public headers
+install(FILES
+  Delphes3DGeometry.h
+  DelphesEventDisplay.h
+DESTINATION include/display)
+
 # install pcms if they are created
 if (${ROOT_VERSION} GREATER 6)
   install(FILES
-- 
2.11.1

From 9259bfea9820e3d83c7984014f5dc652aa61b05f Mon Sep 17 00:00:00 2001
From: Pavel Demin <pavel-demin@outlook.com>
Date: Tue, 14 Feb 2017 09:13:54 +0100
Subject: [PATCH 31/31] install headers required by libDelphes and
 libDelphesDisplay

---
 display/CMakeLists.txt                 | 7 ++-----
 external/ExRootAnalysis/CMakeLists.txt | 2 +-
 modules/CMakeLists.txt                 | 4 ++--
 3 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/delphes-3.4.0/display/CMakeLists.txt b/delphes-3.4.0/display/CMakeLists.txt
index 4886a1c..30fc7f9 100644
--- a/delphes-3.4.0/display/CMakeLists.txt
+++ b/delphes-3.4.0/display/CMakeLists.txt
@@ -12,11 +12,8 @@ DELPHES_GENERATE_DICTIONARY(DisplayDict ${headers} LINKDEF DisplayLinkDef.h)
 
 add_library(display OBJECT ${sources} DisplayDict.cxx)
 
-# install public headers
-install(FILES
-  Delphes3DGeometry.h
-  DelphesEventDisplay.h
-DESTINATION include/display)
+# install headers
+install(FILES ${headers} DESTINATION include/display)
 
 # install pcms if they are created
 if (${ROOT_VERSION} GREATER 6)
diff --git a/delphes-3.4.0/external/ExRootAnalysis/CMakeLists.txt b/delphes-3.4.0/external/ExRootAnalysis/CMakeLists.txt
index 2658fe7..cdd325a 100644
--- a/delphes-3.4.0/external/ExRootAnalysis/CMakeLists.txt
+++ b/delphes-3.4.0/external/ExRootAnalysis/CMakeLists.txt
@@ -11,7 +11,7 @@ DELPHES_GENERATE_DICTIONARY(ExRootAnalysisDict ${headers} LINKDEF ExRootAnalysis
 
 add_library(ExRootAnalysis OBJECT ${sources} ExRootAnalysisDict.cxx)
 
-# install public headers
+# install headers
 install(FILES ${headers} DESTINATION include/ExRootAnalysis)
 
 # install pcms if they are created
diff --git a/delphes-3.4.0/modules/CMakeLists.txt b/delphes-3.4.0/modules/CMakeLists.txt
index 4ba0fe5..9482b8a 100644
--- a/delphes-3.4.0/modules/CMakeLists.txt
+++ b/delphes-3.4.0/modules/CMakeLists.txt
@@ -18,8 +18,8 @@ list(REMOVE_ITEM sources ${CMAKE_CURRENT_SOURCE_DIR}/PileUpMergerPythia8.cc)
 
 add_library(modules OBJECT ${sources} FastJetDict.cxx ModulesDict.cxx)
 
-# install public headers
-install(FILES Delphes.h DESTINATION include/modules)
+# install headers
+install(FILES ${headers} DESTINATION include/modules)
 
 # install pcms if they are created
 if (${ROOT_VERSION} GREATER 6)
-- 
2.11.1