CMakeLists.txt 23.2 KB
Newer Older
1
2
set(SRC_FILES
    src/AppendGeometryToSNSNexus.cpp
3
    src/ApplyDiffCal.cpp
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
    src/BankPulseTimes.cpp
    src/CheckMantidVersion.cpp
    src/CompressEvents.cpp
    src/CreateChunkingFromInstrument.cpp
    src/CreatePolarizationEfficiencies.cpp
    src/CreatePolarizationEfficienciesBase.cpp
    src/CreateSampleShape.cpp
    src/CreateSimulationWorkspace.cpp
    src/DataBlock.cpp
    src/DataBlockComposite.cpp
    src/DataBlockGenerator.cpp
    src/DefaultEventLoader.cpp
    src/DefineGaugeVolume.cpp
    src/DeleteTableRows.cpp
    src/DetermineChunking.cpp
    src/DownloadFile.cpp
    src/DownloadInstrument.cpp
    src/EventWorkspaceCollection.cpp
    src/ExtractMonitorWorkspace.cpp
    src/ExtractPolarizationEfficiencies.cpp
    src/FilterEventsByLogValuePreNexus.cpp
    src/FindDetectorsInShape.cpp
    src/FindDetectorsPar.cpp
    src/GenerateGroupingPowder.cpp
    src/GroupDetectors.cpp
    src/GroupDetectors2.cpp
    src/H5Util.cpp
    src/ISISDataArchive.cpp
32
    src/ISISJournal.cpp
33
    src/ISISJournalGetExperimentRuns.cpp
34
35
36
37
38
39
40
41
42
43
44
45
46
    src/ISISRunLogs.cpp
    src/JoinISISPolarizationEfficiencies.cpp
    src/Load.cpp
    src/LoadANSTOHelper.cpp
    src/LoadAscii.cpp
    src/LoadAscii2.cpp
    src/LoadAsciiStl.cpp
    src/LoadBBY.cpp
    src/LoadBankFromDiskTask.cpp
    src/LoadBinaryStl.cpp
    src/LoadCalFile.cpp
    src/LoadCanSAS1D.cpp
    src/LoadCanSAS1D2.cpp
durong24's avatar
durong24 committed
47
    src/LoadCSNSNexus.cpp
48
49
50
51
52
53
    src/LoadDaveGrp.cpp
    src/LoadDetectorInfo.cpp
    src/LoadDetectorsGroupingFile.cpp
    src/LoadDiffCal.cpp
    src/LoadDspacemap.cpp
    src/LoadEMU.cpp
54
    src/LoadEmptyInstrument.cpp
55
56
57
58
59
60
61
    src/LoadEventNexus.cpp
    src/LoadEventNexusIndexSetup.cpp
    src/LoadEventPreNexus2.cpp
    src/LoadFITS.cpp
    src/LoadFullprofResolution.cpp
    src/LoadGSASInstrumentFile.cpp
    src/LoadGSS.cpp
62
63
    src/LoadGeometry.cpp
    src/LoadHFIRSANS.cpp
64
65
66
67
68
    src/LoadHelper.cpp
    src/LoadIDFFromNexus.cpp
    src/LoadILLDiffraction.cpp
    src/LoadILLIndirect2.cpp
    src/LoadILLPolarizationFactors.cpp
69
    src/LoadILLPolarizedDiffraction.cpp
70
71
72
73
    src/LoadILLReflectometry.cpp
    src/LoadILLSANS.cpp
    src/LoadILLTOF2.cpp
    src/LoadISISNexus2.cpp
74
    src/LoadISISNexusHelper.cpp
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
    src/LoadISISPolarizationEfficiencies.cpp
    src/LoadInstrument.cpp
    src/LoadInstrumentFromNexus.cpp
    src/LoadInstrumentFromRaw.cpp
    src/LoadIsawDetCal.cpp
    src/LoadLLB.cpp
    src/LoadLog.cpp
    src/LoadMLZ.cpp
    src/LoadMappingTable.cpp
    src/LoadMask.cpp
    src/LoadMcStas.cpp
    src/LoadMcStasNexus.cpp
    src/LoadMuonLog.cpp
    src/LoadMuonNexus.cpp
    src/LoadMuonNexus1.cpp
    src/LoadMuonNexus2.cpp
Stephen's avatar
Stephen committed
91
    src/LoadMuonNexusV2.cpp
Stephen's avatar
Stephen committed
92
    src/LoadMuonNexusV2NexusHelper.cpp
Stephen Smith's avatar
Stephen Smith committed
93
    src/LoadMuonStrategy.cpp
94
    src/SinglePeriodLoadMuonStrategy.cpp
95
    src/MultiPeriodLoadMuonStrategy.cpp
96
97
98
99
100
101
102
    src/LoadNXSPE.cpp
    src/LoadNXcanSAS.cpp
    src/LoadNexus.cpp
    src/LoadNexusLogs.cpp
    src/LoadNexusMonitors.cpp
    src/LoadNexusMonitors2.cpp
    src/LoadNexusProcessed.cpp
103
    src/LoadNexusProcessed2.cpp
104
    src/LoadOff.cpp
Conor Finn's avatar
Conor Finn committed
105
    src/LoadNGEM.cpp
106
    src/LoadPDFgetNFile.cpp
107
108
    src/LoadPLN.cpp
    src/LoadPSIMuonBin.cpp
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
    src/LoadParameterFile.cpp
    src/LoadPreNexus.cpp
    src/LoadPreNexusMonitors.cpp
    src/LoadQKK.cpp
    src/LoadRKH.cpp
    src/LoadRaw/byte_rel_comp.cpp
    src/LoadRaw/isisraw.cpp
    src/LoadRaw/isisraw2.cpp
    src/LoadRaw/item_struct.cpp
    src/LoadRaw/vms_convert.cpp
    src/LoadRaw3.cpp
    src/LoadRawBin0.cpp
    src/LoadRawHelper.cpp
    src/LoadRawSpectrum0.cpp
    src/LoadSESANS.cpp
    src/LoadSINQFocus.cpp
    src/LoadSNSspec.cpp
    src/LoadSPE.cpp
    src/LoadSampleDetailsFromRaw.cpp
128
129
    src/LoadSampleEnvironment.cpp
    src/LoadSampleShape.cpp
130
    src/LoadSassena.cpp
131
    src/LoadSingleMesh.cpp
132
133
134
135
136
    src/LoadSpec.cpp
    src/LoadSpice2D.cpp
    src/LoadSpiceAscii.cpp
    src/LoadSpiceXML2DDet.cpp
    src/LoadStl.cpp
137
    src/LoadSwans.cpp
138
139
140
141
142
    src/LoadTBL.cpp
    src/LoadTOFRawNexus.cpp
    src/MaskDetectors.cpp
    src/MaskDetectorsInShape.cpp
    src/MaskSpectra.cpp
143
    src/MeshFileIO.cpp
144
145
146
147
148
149
150
151
152
153
154
155
156
157
    src/ModifyDetectorDotDatFile.cpp
    src/MoveInstrumentComponent.cpp
    src/NexusTester.cpp
    src/ORNLDataArchive.cpp
    src/PDLoadCharacterizations.cpp
    src/ParallelEventLoader.cpp
    src/PatchBBY.cpp
    src/ProcessBankData.cpp
    src/RawFileInfo.cpp
    src/ReadMaterial.cpp
    src/RemoveLogs.cpp
    src/RenameLog.cpp
    src/RotateInstrumentComponent.cpp
    src/RotateSource.cpp
158
159
160
    src/SampleEnvironmentFactory.cpp
    src/SampleEnvironmentSpec.cpp
    src/SampleEnvironmentSpecParser.cpp
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
    src/SaveAscii.cpp
    src/SaveAscii2.cpp
    src/SaveBankScatteringAngles.cpp
    src/SaveCSV.cpp
    src/SaveCalFile.cpp
    src/SaveCanSAS1D.cpp
    src/SaveCanSAS1D2.cpp
    src/SaveDaveGrp.cpp
    src/SaveDetectorsGrouping.cpp
    src/SaveDiffCal.cpp
    src/SaveDiffFittingAscii.cpp
    src/SaveDspacemap.cpp
    src/SaveFITS.cpp
    src/SaveFocusedXYE.cpp
    src/SaveFullprofResolution.cpp
    src/SaveGDA.cpp
    src/SaveGSASInstrumentFile.cpp
    src/SaveGSS.cpp
    src/SaveISISNexus.cpp
    src/SaveIsawDetCal.cpp
    src/SaveMask.cpp
    src/SaveNISTDAT.cpp
    src/SaveNXSPE.cpp
    src/SaveNXTomo.cpp
    src/SaveNXcanSAS.cpp
    src/SaveNexus.cpp
Owen Arnold's avatar
Owen Arnold committed
187
    src/SaveNexusESS.cpp
188
    src/SaveNexusGeometry.cpp
189
190
191
192
193
194
195
    src/SaveNexusProcessed.cpp
    src/SaveOpenGenieAscii.cpp
    src/SavePAR.cpp
    src/SavePDFGui.cpp
    src/SavePHX.cpp
    src/SaveParameterFile.cpp
    src/SaveRKH.cpp
196
    src/SaveReflectometryAscii.cpp
197
    src/SaveRMCProfile.cpp
198
199
    src/SaveSESANS.cpp
    src/SaveSPE.cpp
200
    src/SaveSampleEnvironmentAndShape.cpp
Sam Jenkins's avatar
Sam Jenkins committed
201
    src/SaveStl.cpp
202
203
204
205
206
207
208
209
210
211
212
    src/SaveTBL.cpp
    src/SaveToSNSHistogramNexus.cpp
    src/SaveVTK.cpp
    src/SetBeam.cpp
    src/SetSample.cpp
    src/SetSampleMaterial.cpp
    src/SetScalingPSD.cpp
    src/SortTableWorkspace.cpp
    src/StartAndEndTimeFromNexusFileExtractor.cpp
    src/UpdateInstrumentFromFile.cpp
    src/XmlHandler.cpp)
213

214
215
set(INC_FILES
    inc/MantidDataHandling/AppendGeometryToSNSNexus.h
216
    inc/MantidDataHandling/ApplyDiffCal.h
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
    inc/MantidDataHandling/BankPulseTimes.h
    inc/MantidDataHandling/CheckMantidVersion.h
    inc/MantidDataHandling/CompressEvents.h
    inc/MantidDataHandling/CreateChunkingFromInstrument.h
    inc/MantidDataHandling/CreatePolarizationEfficiencies.h
    inc/MantidDataHandling/CreatePolarizationEfficienciesBase.h
    inc/MantidDataHandling/CreateSampleShape.h
    inc/MantidDataHandling/CreateSimulationWorkspace.h
    inc/MantidDataHandling/DataBlock.h
    inc/MantidDataHandling/DataBlockComposite.h
    inc/MantidDataHandling/DataBlockGenerator.h
    inc/MantidDataHandling/DefaultEventLoader.h
    inc/MantidDataHandling/DefineGaugeVolume.h
    inc/MantidDataHandling/DeleteTableRows.h
    inc/MantidDataHandling/DetermineChunking.h
    inc/MantidDataHandling/DownloadFile.h
    inc/MantidDataHandling/DownloadInstrument.h
    inc/MantidDataHandling/EventWorkspaceCollection.h
    inc/MantidDataHandling/ExtractMonitorWorkspace.h
    inc/MantidDataHandling/ExtractPolarizationEfficiencies.h
    inc/MantidDataHandling/FilterEventsByLogValuePreNexus.h
    inc/MantidDataHandling/FindDetectorsInShape.h
    inc/MantidDataHandling/FindDetectorsPar.h
    inc/MantidDataHandling/GenerateGroupingPowder.h
    inc/MantidDataHandling/GroupDetectors.h
    inc/MantidDataHandling/GroupDetectors2.h
    inc/MantidDataHandling/H5Util.h
    inc/MantidDataHandling/ISISDataArchive.h
245
    inc/MantidDataHandling/ISISJournal.h
246
    inc/MantidDataHandling/ISISJournalGetExperimentRuns.h
247
248
249
250
251
252
253
254
255
256
257
258
259
260
    inc/MantidDataHandling/ISISRunLogs.h
    inc/MantidDataHandling/JoinISISPolarizationEfficiencies.h
    inc/MantidDataHandling/Load.h
    inc/MantidDataHandling/LoadANSTOEventFile.h
    inc/MantidDataHandling/LoadANSTOHelper.h
    inc/MantidDataHandling/LoadAscii.h
    inc/MantidDataHandling/LoadAscii2.h
    inc/MantidDataHandling/LoadAsciiStl.h
    inc/MantidDataHandling/LoadBBY.h
    inc/MantidDataHandling/LoadBankFromDiskTask.h
    inc/MantidDataHandling/LoadBinaryStl.h
    inc/MantidDataHandling/LoadCalFile.h
    inc/MantidDataHandling/LoadCanSAS1D.h
    inc/MantidDataHandling/LoadCanSAS1D2.h
durong24's avatar
durong24 committed
261
    inc/MantidDataHandling/LoadCSNSNexus.h
262
263
264
265
266
267
    inc/MantidDataHandling/LoadDaveGrp.h
    inc/MantidDataHandling/LoadDetectorInfo.h
    inc/MantidDataHandling/LoadDetectorsGroupingFile.h
    inc/MantidDataHandling/LoadDiffCal.h
    inc/MantidDataHandling/LoadDspacemap.h
    inc/MantidDataHandling/LoadEMU.h
268
    inc/MantidDataHandling/LoadEmptyInstrument.h
269
270
271
272
273
274
275
    inc/MantidDataHandling/LoadEventNexus.h
    inc/MantidDataHandling/LoadEventNexusIndexSetup.h
    inc/MantidDataHandling/LoadEventPreNexus2.h
    inc/MantidDataHandling/LoadFITS.h
    inc/MantidDataHandling/LoadFullprofResolution.h
    inc/MantidDataHandling/LoadGSASInstrumentFile.h
    inc/MantidDataHandling/LoadGSS.h
276
277
    inc/MantidDataHandling/LoadGeometry.h
    inc/MantidDataHandling/LoadHFIRSANS.h
278
279
280
281
282
    inc/MantidDataHandling/LoadHelper.h
    inc/MantidDataHandling/LoadIDFFromNexus.h
    inc/MantidDataHandling/LoadILLDiffraction.h
    inc/MantidDataHandling/LoadILLIndirect2.h
    inc/MantidDataHandling/LoadILLPolarizationFactors.h
283
    inc/MantidDataHandling/LoadILLPolarizedDiffraction.h
284
285
286
287
    inc/MantidDataHandling/LoadILLReflectometry.h
    inc/MantidDataHandling/LoadILLSANS.h
    inc/MantidDataHandling/LoadILLTOF2.h
    inc/MantidDataHandling/LoadISISNexus2.h
288
    inc/MantidDataHandling/LoadISISNexusHelper.h
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
    inc/MantidDataHandling/LoadISISPolarizationEfficiencies.h
    inc/MantidDataHandling/LoadInstrument.h
    inc/MantidDataHandling/LoadInstrumentFromNexus.h
    inc/MantidDataHandling/LoadInstrumentFromRaw.h
    inc/MantidDataHandling/LoadIsawDetCal.h
    inc/MantidDataHandling/LoadLLB.h
    inc/MantidDataHandling/LoadLog.h
    inc/MantidDataHandling/LoadMLZ.h
    inc/MantidDataHandling/LoadMappingTable.h
    inc/MantidDataHandling/LoadMask.h
    inc/MantidDataHandling/LoadMcStas.h
    inc/MantidDataHandling/LoadMcStasNexus.h
    inc/MantidDataHandling/LoadMuonLog.h
    inc/MantidDataHandling/LoadMuonNexus.h
    inc/MantidDataHandling/LoadMuonNexus1.h
    inc/MantidDataHandling/LoadMuonNexus2.h
Stephen's avatar
Stephen committed
305
    inc/MantidDataHandling/LoadMuonNexusV2.h
Stephen's avatar
Stephen committed
306
    inc/MantidDataHandling/LoadMuonNexusV2NexusHelper.h
307
308
    inc/MantidDataHandling/LoadMuonStrategy.h
    inc/MantidDataHandling/SinglePeriodLoadMuonStrategy.h
309
    inc/MantidDataHandling/MultiPeriodLoadMuonStrategy.h
310
311
312
313
314
315
316
    inc/MantidDataHandling/LoadNXSPE.h
    inc/MantidDataHandling/LoadNXcanSAS.h
    inc/MantidDataHandling/LoadNexus.h
    inc/MantidDataHandling/LoadNexusLogs.h
    inc/MantidDataHandling/LoadNexusMonitors.h
    inc/MantidDataHandling/LoadNexusMonitors2.h
    inc/MantidDataHandling/LoadNexusProcessed.h
317
    inc/MantidDataHandling/LoadNexusProcessed2.h
318
    inc/MantidDataHandling/LoadOff.h
Conor Finn's avatar
Conor Finn committed
319
    inc/MantidDataHandling/LoadNGEM.h
320
    inc/MantidDataHandling/LoadPDFgetNFile.h
321
322
    inc/MantidDataHandling/LoadPLN.h
    inc/MantidDataHandling/LoadPSIMuonBin.h
323
324
325
326
327
328
329
330
331
332
333
334
335
336
    inc/MantidDataHandling/LoadParameterFile.h
    inc/MantidDataHandling/LoadPreNexus.h
    inc/MantidDataHandling/LoadPreNexusMonitors.h
    inc/MantidDataHandling/LoadQKK.h
    inc/MantidDataHandling/LoadRKH.h
    inc/MantidDataHandling/LoadRaw3.h
    inc/MantidDataHandling/LoadRawBin0.h
    inc/MantidDataHandling/LoadRawHelper.h
    inc/MantidDataHandling/LoadRawSpectrum0.h
    inc/MantidDataHandling/LoadSESANS.h
    inc/MantidDataHandling/LoadSINQFocus.h
    inc/MantidDataHandling/LoadSNSspec.h
    inc/MantidDataHandling/LoadSPE.h
    inc/MantidDataHandling/LoadSampleDetailsFromRaw.h
337
338
    inc/MantidDataHandling/LoadSampleEnvironment.h
    inc/MantidDataHandling/LoadSampleShape.h
339
    inc/MantidDataHandling/LoadSassena.h
340
    inc/MantidDataHandling/LoadSingleMesh.h
341
342
343
344
345
    inc/MantidDataHandling/LoadSpec.h
    inc/MantidDataHandling/LoadSpice2D.h
    inc/MantidDataHandling/LoadSpiceAscii.h
    inc/MantidDataHandling/LoadSpiceXML2DDet.h
    inc/MantidDataHandling/LoadStl.h
346
    inc/MantidDataHandling/LoadStlFactory.h
347
348
349
350
351
352
    inc/MantidDataHandling/LoadSwans.h
    inc/MantidDataHandling/LoadTBL.h
    inc/MantidDataHandling/LoadTOFRawNexus.h
    inc/MantidDataHandling/MaskDetectors.h
    inc/MantidDataHandling/MaskDetectorsInShape.h
    inc/MantidDataHandling/MaskSpectra.h
353
    inc/MantidDataHandling/MeshFileIO.h
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
    inc/MantidDataHandling/ModifyDetectorDotDatFile.h
    inc/MantidDataHandling/MoveInstrumentComponent.h
    inc/MantidDataHandling/NXcanSASDefinitions.h
    inc/MantidDataHandling/NexusTester.h
    inc/MantidDataHandling/ORNLDataArchive.h
    inc/MantidDataHandling/PDLoadCharacterizations.h
    inc/MantidDataHandling/ParallelEventLoader.h
    inc/MantidDataHandling/PatchBBY.h
    inc/MantidDataHandling/ProcessBankData.h
    inc/MantidDataHandling/RawFileInfo.h
    inc/MantidDataHandling/ReadMaterial.h
    inc/MantidDataHandling/RemoveLogs.h
    inc/MantidDataHandling/RenameLog.h
    inc/MantidDataHandling/RotateInstrumentComponent.h
    inc/MantidDataHandling/RotateSource.h
369
370
371
    inc/MantidDataHandling/SampleEnvironmentFactory.h
    inc/MantidDataHandling/SampleEnvironmentSpec.h
    inc/MantidDataHandling/SampleEnvironmentSpecParser.h
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
    inc/MantidDataHandling/SaveAscii.h
    inc/MantidDataHandling/SaveAscii2.h
    inc/MantidDataHandling/SaveBankScatteringAngles.h
    inc/MantidDataHandling/SaveCSV.h
    inc/MantidDataHandling/SaveCalFile.h
    inc/MantidDataHandling/SaveCanSAS1D.h
    inc/MantidDataHandling/SaveCanSAS1D2.h
    inc/MantidDataHandling/SaveDaveGrp.h
    inc/MantidDataHandling/SaveDetectorsGrouping.h
    inc/MantidDataHandling/SaveDiffCal.h
    inc/MantidDataHandling/SaveDiffFittingAscii.h
    inc/MantidDataHandling/SaveDspacemap.h
    inc/MantidDataHandling/SaveFITS.h
    inc/MantidDataHandling/SaveFocusedXYE.h
    inc/MantidDataHandling/SaveFullprofResolution.h
    inc/MantidDataHandling/SaveGDA.h
    inc/MantidDataHandling/SaveGSASInstrumentFile.h
    inc/MantidDataHandling/SaveGSS.h
    inc/MantidDataHandling/SaveISISNexus.h
    inc/MantidDataHandling/SaveIsawDetCal.h
    inc/MantidDataHandling/SaveMask.h
    inc/MantidDataHandling/SaveNISTDAT.h
    inc/MantidDataHandling/SaveNXSPE.h
    inc/MantidDataHandling/SaveNXTomo.h
    inc/MantidDataHandling/SaveNXcanSAS.h
    inc/MantidDataHandling/SaveNexus.h
Owen Arnold's avatar
Owen Arnold committed
398
    inc/MantidDataHandling/SaveNexusESS.h
399
    inc/MantidDataHandling/SaveNexusGeometry.h
400
401
402
403
404
405
406
    inc/MantidDataHandling/SaveNexusProcessed.h
    inc/MantidDataHandling/SaveOpenGenieAscii.h
    inc/MantidDataHandling/SavePAR.h
    inc/MantidDataHandling/SavePDFGui.h
    inc/MantidDataHandling/SavePHX.h
    inc/MantidDataHandling/SaveParameterFile.h
    inc/MantidDataHandling/SaveRKH.h
407
    inc/MantidDataHandling/SaveReflectometryAscii.h
408
    inc/MantidDataHandling/SaveRMCProfile.h
409
410
    inc/MantidDataHandling/SaveSESANS.h
    inc/MantidDataHandling/SaveSPE.h
411
    inc/MantidDataHandling/SaveSampleEnvironmentAndShape.h
Sam Jenkins's avatar
Sam Jenkins committed
412
    inc/MantidDataHandling/SaveStl.h
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
    inc/MantidDataHandling/SaveTBL.h
    inc/MantidDataHandling/SaveToSNSHistogramNexus.h
    inc/MantidDataHandling/SaveVTK.h
    inc/MantidDataHandling/SetBeam.h
    inc/MantidDataHandling/SetSample.h
    inc/MantidDataHandling/SetSampleMaterial.h
    inc/MantidDataHandling/SetScalingPSD.h
    inc/MantidDataHandling/SortTableWorkspace.h
    inc/MantidDataHandling/StartAndEndTimeFromNexusFileExtractor.h
    inc/MantidDataHandling/UpdateInstrumentFromFile.h
    inc/MantidDataHandling/XmlHandler.h
    src/LoadRaw/byte_rel_comp.h
    src/LoadRaw/isisraw.h
    src/LoadRaw/isisraw2.h
    src/LoadRaw/item_struct.h
    src/LoadRaw/vms_convert.h)
429

430
431
set(TEST_FILES
    AppendGeometryToSNSNexusTest.h
432
    ApplyDiffCalTest.h
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
    CheckMantidVersionTest.h
    CompressEventsTest.h
    CreateChunkingFromInstrumentTest.h
    CreatePolarizationEfficienciesTest.h
    CreateSampleShapeTest.h
    CreateSimulationWorkspaceTest.h
    DataBlockCompositeTest.h
    DataBlockGeneratorTest.h
    DataBlockTest.h
    DefineGaugeVolumeTest.h
    DeleteTableRowsTest.h
    DetermineChunkingTest.h
    DownloadFileTest.h
    DownloadInstrumentTest.h
    EventWorkspaceCollectionTest.h
    ExtractMonitorWorkspaceTest.h
    ExtractPolarizationEfficienciesTest.h
    FilterEventsByLogValuePreNexusTest.h
    FindDetectorsInShapeTest.h
    FindDetectorsParTest.h
    GenerateGroupingPowderTest.h
    GroupDetectors2Test.h
    GroupDetectorsTest.h
    H5UtilTest.h
    ISISDataArchiveTest.h
458
    ISISJournalTest.h
459
    ISISJournalGetExperimentRunsTest.h
460
461
462
463
    InstrumentRayTracerTest.h
    JoinISISPolarizationEfficienciesTest.h
    LoadAscii2Test.h
    LoadAsciiStlTest.h
464
    LoadAsciiTest.h
465
466
467
468
    LoadBBYTest.h
    LoadBinaryStlTest.h
    LoadCalFileTest.h
    LoadCanSAS1dTest.h
durong24's avatar
durong24 committed
469
    LoadCSNSNexusTest.h
470
471
472
473
474
475
    LoadDaveGrpTest.h
    LoadDetectorInfoTest.h
    LoadDetectorsGroupingFileTest.h
    LoadDiffCalTest.h
    LoadDspacemapTest.h
    LoadEMUauTest.h
476
    LoadEmptyInstrumentTest.h
477
478
479
480
481
482
483
    LoadEventNexusIndexSetupTest.h
    LoadEventNexusTest.h
    LoadEventPreNexus2Test.h
    LoadFITSTest.h
    LoadFullprofResolutionTest.h
    LoadGSASInstrumentFileTest.h
    LoadGSSTest.h
484
    LoadHFIRSANSTest.h
485
486
487
488
    LoadIDFFromNexusTest.h
    LoadILLDiffractionTest.h
    LoadILLIndirect2Test.h
    LoadILLPolarizationFactorsTest.h
489
    LoadILLPolarizedDiffractionTest.h
490
491
492
    LoadILLReflectometryTest.h
    LoadILLSANSTest.h
    LoadILLTOF2Test.h
493
    LoadILLTest.h
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
    LoadISISNexusTest.h
    LoadISISPolarizationEfficienciesTest.h
    LoadInstrumentFromNexusTest.h
    LoadInstrumentFromRawTest.h
    LoadInstrumentTest.h
    LoadIsawDetCalTest.h
    LoadLLBTest.h
    LoadLogTest.h
    LoadMLZTest.h
    LoadMappingTableTest.h
    LoadMaskTest.h
    LoadMcStasNexusTest.h
    LoadMcStasTest.h
    LoadMuonLogTest.h
    LoadMuonNexus1Test.h
    LoadMuonNexus2Test.h
Stephen's avatar
Stephen committed
510
    LoadMuonNexusV2Test.h
511
    LoadNGEMTest.h
512
513
514
515
    LoadNXSPETest.h
    LoadNXcanSASTest.h
    LoadNexusLogsTest.h
    LoadNexusMonitorsTest.h
516
    LoadNexusProcessed2Test.h
517
518
519
520
    LoadNexusProcessedTest.h
    LoadNexusTest.h
    LoadPDFgetNFileTest.h
    LoadPLNTest.h
521
522
    LoadPSIMuonBinTest.h
    LoadParameterFileTest.h
523
524
525
526
527
528
529
530
531
532
533
534
535
    LoadPreNexusMonitorsTest.h
    LoadPreNexusTest.h
    LoadQKKTest.h
    LoadRKHTest.h
    LoadRaw3Test.h
    LoadRawBin0Test.h
    LoadRawSaveNxsLoadNxsTest.h
    LoadRawSpectrum0Test.h
    LoadSESANSTest.h
    LoadSINQFocusTest.h
    LoadSNSspecTest.h
    LoadSPETest.h
    LoadSampleDetailsFromRawTest.h
536
537
    LoadSampleEnvironmentTest.h
    LoadSampleShapeTest.h
538
539
540
541
542
543
    LoadSassenaTest.h
    LoadSaveAsciiTest.h
    LoadSpecTest.h
    LoadSpice2dTest.h
    LoadSpiceAsciiTest.h
    LoadSpiceXML2DDetTest.h
544
    LoadStlTest.h
545
546
547
548
549
550
551
    LoadSwansTest.h
    LoadTBLTest.h
    LoadTOFRawNexusTest.h
    LoadTest.h
    MaskDetectorsInShapeTest.h
    MaskDetectorsTest.h
    MaskSpectraTest.h
552
    MeshFileIOTest.h
553
554
555
556
557
558
559
560
561
562
563
    ModifyDetectorDotDatFileTest.h
    MoveInstrumentComponentTest.h
    NexusTesterTest.h
    ORNLDataArchiveTest.h
    PDLoadCharacterizationsTest.h
    RawFileInfoTest.h
    ReadMaterialTest.h
    RemoveLogsTest.h
    RenameLogTest.h
    RotateInstrumentComponentTest.h
    RotateSourceTest.h
564
565
566
567
    SampleEnvironmentFactoryTest.h
    SampleEnvironmentSpecFileFinderTest.h
    SampleEnvironmentSpecParserTest.h
    SampleEnvironmentSpecTest.h
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
    SaveAscii2Test.h
    SaveAsciiTest.h
    SaveBankScatteringAnglesTest.h
    SaveCSVTest.h
    SaveCalFileTest.h
    SaveCanSAS1dTest.h
    SaveCanSAS1dTest2.h
    SaveDaveGrpTest.h
    SaveDetectorsGroupingTest.h
    SaveDiffCalTest.h
    SaveDspacemapTest.h
    SaveFITSTest.h
    SaveFocusedXYETest.h
    SaveFullprofResolutionTest.h
    SaveGDATest.h
    SaveGSASInstrumentFileTest.h
    SaveGSSTest.h
    SaveIsawDetCalTest.h
    SaveMaskTest.h
    SaveNISTDATTest.h
    SaveNXSPETest.h
    SaveNXTomoTest.h
    SaveNXcanSASTest.h
Owen Arnold's avatar
Owen Arnold committed
591
    SaveNexusESSTest.h
592
    SaveNexusGeometryTest.h
593
594
595
596
597
598
599
600
    SaveNexusProcessedTest.h
    SaveNexusTest.h
    SaveOpenGenieAsciiTest.h
    SavePARTest.h
    SavePDFGuiTest.h
    SavePHXTest.h
    SaveParameterFileTest.h
    SaveRKHTest.h
601
    SaveReflectometryAsciiTest.h
602
    SaveRMCProfileTest.h
603
604
    SaveSESANSTest.h
    SaveSPETest.h
605
    SaveSampleEnvironmentAndShapeTest.h
606
    SaveStlTest.h
607
608
609
610
611
612
613
614
615
616
    SaveTBLTest.h
    SaveToSNSHistogramNexusTest.h
    SetBeamTest.h
    SetSampleMaterialTest.h
    SetSampleTest.h
    SetScalingPSDTest.h
    SortTableWorkspaceTest.h
    StartAndEndTimeFromNexusFileExtractorTest.h
    UpdateInstrumentFromFileTest.h
    XMLInstrumentParameterTest.h)
617

618
if(COVERAGE)
619
620
621
622
623
  foreach(loop_var ${SRC_FILES} ${INC_FILES})
    set_property(GLOBAL APPEND
                 PROPERTY COVERAGE_SRCS
                          "${CMAKE_CURRENT_SOURCE_DIR}/${loop_var}")
  endforeach(loop_var)
624
endif()
625

626
627
if(UNITY_BUILD)
  include(UnityBuild)
628
  enable_unity_build(DataHandling SRC_FILES SRC_UNITY_IGNORE_FILES 10)
629
630
endif(UNITY_BUILD)

631
632
633
634
635
636
637
638
639
640
641
642
if(WIN32)
  set(ENABLE_LIB3MF ON)
endif()

if(ENABLE_LIB3MF)
  add_definitions(-DENABLE_LIB3MF)
  list(APPEND
    INC_FILES
    inc/MantidDataHandling/Mantid3MFFileIO.h)
  list(APPEND
    SRC_FILES
    src/Mantid3MFFileIO.cpp)
643
644
645
  list(APPEND
    TEST_FILES
    Mantid3MFFileIOTest.h)
646
647
648
  find_package(Lib3mf REQUIRED)
endif()

649
# Use a precompiled header where they are supported
650
enable_precompiled_headers(inc/MantidDataHandling/PrecompiledHeader.h SRC_FILES)
651
# Add the target for this directory
652
add_library(DataHandling ${SRC_FILES} ${INC_FILES})
Stephen's avatar
Stephen committed
653
654
655
656
657
658
add_library(Mantid::DataHandling ALIAS DataHandling)

target_include_directories(DataHandling PUBLIC
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
		$<INSTALL_INTERFACE:include/Mantid>
)
659
# Set the name of the generated library
660
661
662
663
664
set_target_properties(DataHandling
                      PROPERTIES OUTPUT_NAME
                                 MantidDataHandling
                                 COMPILE_DEFINITIONS
                                 "IN_MANTID_DATAHANDLING")
665

666
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
667
668
669
670
671
672
673
674
675
  set_target_properties(DataHandling
                        PROPERTIES INSTALL_RPATH
                                   "@loader_path/../Contents/MacOS")
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
  set_target_properties(
    DataHandling
    PROPERTIES INSTALL_RPATH "\$ORIGIN/../${LIB_DIR};\$ORIGIN/../${PLUGINS_DIR}"
    )
endif()
676

677
# Add to the 'Framework' group in VS
678
set_property(TARGET DataHandling PROPERTY FOLDER "MantidFramework")
679

680
target_link_libraries(DataHandling
Stephen's avatar
Stephen committed
681
682
683
684
685
686
687
688
689
690
                        PUBLIC
                        Mantid::Nexus
                        Mantid::API
                        Mantid::HistogramData
                        Mantid::Catalog
                        Mantid::DataObjects
                        Mantid::Geometry
                        Mantid::Kernel
                        Mantid::Indexing
                        Mantid::Parallel
Stephen's avatar
Stephen committed
691
692
                        ${HDF5_LIBRARIES}
                        ${HDF5_HL_LIBRARIES}
Stephen's avatar
Stephen committed
693
694
                        PRIVATE
                        Mantid::Json
Stephen's avatar
Stephen committed
695
                        Boost::filesystem
Stephen's avatar
Stephen committed
696
                        Mantid::NexusGeometry)
697

Stephen's avatar
Stephen committed
698
699
700

# Lib3mf is technically a public dependency as it is in our public headers.
# We are assuming here that it won't be used.
701
if(ENABLE_LIB3MF)
Stephen's avatar
Stephen committed
702
  target_link_libraries(DataHandling PRIVATE
703
                        ${LIB3MF_LIBRARIES})
Stephen's avatar
Stephen committed
704
  if (CONDA_BUILD)
Stephen's avatar
Stephen committed
705
    target_include_directories(DataHandling PRIVATE ${LIB3MF_INCLUDE_DIR})
Stephen's avatar
Stephen committed
706
  else()
Stephen's avatar
Stephen committed
707
    target_include_directories(DataHandling PRIVATE ${LIB3MF_INCLUDE_DIR}/lib3mf)
Stephen's avatar
Stephen committed
708
  endif()
709
endif()
710

711
# Add the unit tests directory
712
add_subdirectory(test)
713
714

# Installation settings
Stephen's avatar
Stephen committed
715
716
set(TARGET_EXPORT_NAME "MantidDataHandlingTargets")
mtd_install_dylib(TARGETS DataHandling EXPORT_NAME ${TARGET_EXPORT_NAME} INSTALL_DIRS ${LIB_DIR} ${WORKBENCH_LIB_DIR})
717

Stephen's avatar
Stephen committed
718
719
720
721
722
install(EXPORT ${TARGET_EXPORT_NAME}
        FILE ${TARGET_EXPORT_NAME}.cmake
        NAMESPACE Mantid::
        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/MantidFramework
)