Newer
Older
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
# NOTE that there are a lot of places in this CMakeLists where files need to
# be explicitly listed - we not only have to add the sources and headers,
# but also the files that need to be made known to Qt and sip.
###########################################################################
# Add the source files
###########################################################################
set ( QTIPLOT_SRCS src/ApplicationWindow.cpp
src/ArrowMarker.cpp
src/AssociationsDialog.cpp
src/AxesDialog.cpp
src/Bar.cpp
src/BoxCurve.cpp
src/CanvasPicker.cpp
src/ColorMapDialog.cpp
src/Cone3D.cpp
src/ConfigDialog.cpp
src/ContourLinesEditor.cpp
src/Convolution.cpp
src/Correlation.cpp
src/CurveRangeDialog.cpp
src/CurvesDialog.cpp
src/CustomActionDialog.cpp
src/DataPickerTool.cpp
src/DataSetDialog.cpp
src/Differentiation.cpp
src/ErrDialog.cpp
src/ExpDecayDialog.cpp
src/ExponentialFit.cpp
src/ExportDialog.cpp
src/FFT.cpp
src/FFTDialog.cpp
src/FFTFilter.cpp
src/Filter.cpp
src/FilterDialog.cpp
src/FindDialog.cpp
src/Fit.cpp
src/FitDialog.cpp
src/fit_gsl.cpp
src/FitModelHandler.cpp
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
src/Folder.cpp
src/FunctionCurve.cpp
src/FunctionDialog.cpp
src/Graph3D.cpp
src/Graph.cpp
src/Grid.cpp
src/ImageDialog.cpp
src/ImageExportDialog.cpp
src/ImageMarker.cpp
src/ImportASCIIDialog.cpp
src/importOPJ.cpp
src/IntDialog.cpp
src/Integration.cpp
src/Interpolation.cpp
src/InterpolationDialog.cpp
src/LayerDialog.cpp
src/LegendWidget.cpp
src/LineDialog.cpp
src/LineProfileTool.cpp
src/LogisticFit.cpp
src/MatrixCommand.cpp
src/Matrix.cpp
src/MatrixDialog.cpp
src/MatrixModel.cpp
src/MatrixSizeDialog.cpp
src/MatrixValuesDialog.cpp
src/MdiSubWindow.cpp
src/MultiLayer.cpp
src/MultiPeakFit.cpp
src/MultiPeakFitTool.cpp
src/muParserScript.cpp
src/muParserScripting.cpp
src/MyParser.cpp
src/NonLinearFit.cpp
src/Note.cpp
src/nrutil.cpp
src/OpenProjectDialog.cpp
src/pixmaps.cpp
src/Plot3DDialog.cpp
src/Plot.cpp
src/PlotCurve.cpp
src/PlotDialog.cpp
src/PlotEnrichement.cpp
src/PlotWizard.cpp
src/PluginFit.cpp
src/PolynomFitDialog.cpp
src/PolynomialFit.cpp
src/PythonScript.cpp
src/PythonScripting.cpp
src/QwtBarCurve.cpp
src/QwtErrorPlotCurve.cpp
src/QwtHistogram.cpp
src/QwtPieCurve.cpp
src/RangeSelectorTool.cpp
src/RenameWindowDialog.cpp
src/ScaleDraw.cpp
src/ScalePicker.cpp
src/ScreenPickerTool.cpp
src/Script.cpp
src/Scripted.cpp
src/ScriptEdit.cpp
src/ScriptingEnv.cpp
src/ScriptingLangDialog.cpp
src/ScriptingWindow.cpp
src/ScriptManagerWidget.cpp
src/SelectionMoveResizer.cpp
src/SendToProgramDialog.cpp
src/SetColValuesDialog.cpp
src/SigmoidalFit.cpp
src/SmoothCurveDialog.cpp
src/SmoothFilter.cpp
src/SortDialog.cpp
src/Spectrogram.cpp
src/SurfaceDialog.cpp
src/Table.cpp
src/TableDialog.cpp
src/TableStatistics.cpp
src/TextDialog.cpp
src/TextEditor.cpp
src/TitlePicker.cpp
src/ThreadAdapter.cpp
src/TranslateCurveTool.cpp
src/UserFunction.cpp
src/VectorCurve.cpp
src/origin/OPJFile.cpp
src/plot2D/ImageSymbol.cpp
src/plot2D/ScaleEngine.cpp
src/analysis/fft2D.cpp
Russell Taylor
committed
src/lib/src/CollapsiveGroupBox.cpp
Russell Taylor
committed
src/lib/src/ColorBox.cpp
src/lib/src/ColorButton.cpp
Russell Taylor
committed
src/lib/src/ColorMapEditor.cpp
src/lib/src/DoubleSpinBox.cpp
src/lib/src/ExtensibleFileDialog.cpp
src/lib/src/LineNumberDisplay.cpp
src/lib/src/PatternBox.cpp
src/lib/src/PenStyleBox.cpp
src/lib/src/SymbolBox.cpp
src/lib/src/SymbolDialog.cpp
src/lib/src/TextFormatButtons.cpp
Russell Taylor
committed
src/lib/3rdparty/qtcolorpicker/src/qtcolorpicker.cpp
set ( QTIPLOT_C_SRC src/zlib123/minigzip.c )
# Suppress compiler warning on file that isn't ours
if ( CMAKE_COMPILER_IS_GNUCXX )
set_source_files_properties ( src/lib/3rdparty/qtcolorpicker/src/qtcolorpicker.cpp
PROPERTIES COMPILE_FLAGS -Wno-cast-qual )
endif ()
set ( MANTID_SRCS src/Mantid/AbstractMantidLog.cpp
src/Mantid/AlgorithmMonitor.cpp
src/Mantid/AlgorithmHistoryWindow.cpp
src/Mantid/ErrorBarSettings.cpp
Gigg, Martyn Anthony
committed
src/Mantid/FirstTimeSetup.cpp
src/Mantid/FitParameterTie.cpp
src/Mantid/FlowLayout.cpp
src/Mantid/IFunctionWrapper.cpp
src/Mantid/ImportWorkspaceDlg.cpp
src/Mantid/InputHistory.cpp
src/Mantid/LoadDAEDlg.cpp
src/Mantid/ManageCustomMenus.cpp
src/Mantid/MantidAbout.cpp
src/Mantid/MantidApplication.cpp
src/Mantid/MantidCurve.cpp
src/Mantid/MantidDock.cpp
src/Mantid/MantidLog.cpp
src/Mantid/MantidMatrix.cpp
src/Mantid/MantidMatrixCurve.cpp
src/Mantid/MantidMDCurve.cpp
src/Mantid/MantidMDCurveDialog.cpp
src/Mantid/MantidMatrixDialog.cpp
src/Mantid/MantidSampleLogDialog.cpp
src/Mantid/MantidUI.cpp
Roman Tolchenov
committed
src/Mantid/MantidTable.cpp
Peter Parker
committed
src/Mantid/MantidWSIndexDialog.cpp
src/Mantid/PeakPickerTool.cpp
src/Mantid/Preferences.cpp
src/Mantid/RemoveErrorsDialog.cpp
src/Mantid/UserFitFunctionDialog.cpp
src/Mantid/InstrumentWidget/BinDialog.cpp
src/Mantid/InstrumentWidget/CompAssemblyActor.cpp
src/Mantid/InstrumentWidget/ComponentActor.cpp
src/Mantid/InstrumentWidget/SampleActor.cpp
src/Mantid/InstrumentWidget/GLActorCollection.cpp
src/Mantid/InstrumentWidget/GLActor.cpp
src/Mantid/InstrumentWidget/GLColor.cpp
src/Mantid/InstrumentWidget/GLObject.cpp
src/Mantid/InstrumentWidget/GLTrackball.cpp
src/Mantid/InstrumentWidget/GLViewport.cpp
src/Mantid/InstrumentWidget/ICompAssemblyActor.cpp
src/Mantid/InstrumentWidget/InstrumentActor.cpp
src/Mantid/InstrumentWidget/InstrumentTreeModel.cpp
src/Mantid/InstrumentWidget/InstrumentTreeWidget.cpp
src/Mantid/InstrumentWidget/InstrumentWindow.cpp
src/Mantid/InstrumentWidget/InstrumentWindowRenderTab.cpp
src/Mantid/InstrumentWidget/InstrumentWindowPickTab.cpp
Roman Tolchenov
committed
src/Mantid/InstrumentWidget/InstrumentWindowMaskTab.cpp
Roman Tolchenov
committed
src/Mantid/InstrumentWidget/MantidGLWidget.cpp
src/Mantid/InstrumentWidget/ColorMapWidget.cpp
src/Mantid/InstrumentWidget/ObjCompAssemblyActor.cpp
src/Mantid/InstrumentWidget/ObjComponentActor.cpp
src/Mantid/InstrumentWidget/OpenGLError.cpp
src/Mantid/InstrumentWidget/RectangularDetectorActor.cpp
src/Mantid/InstrumentWidget/UnwrappedCylinder.cpp
src/Mantid/InstrumentWidget/UnwrappedSphere.cpp
src/Mantid/InstrumentWidget/UnwrappedSurface.cpp
Roman Tolchenov
committed
src/Mantid/InstrumentWidget/ProjectionSurface.cpp
src/Mantid/InstrumentWidget/Projection3D.cpp
src/Mantid/InstrumentWidget/PeakMarker2D.cpp
src/Mantid/InstrumentWidget/PeakOverlay.cpp
src/Mantid/InstrumentWidget/OneCurvePlot.cpp
src/Mantid/InstrumentWidget/CollapsiblePanel.cpp
Owen Arnold
committed
src/Mantid/InstrumentWidget/DetSelector.cpp
Roman Tolchenov
committed
src/Mantid/InstrumentWidget/XIntegrationControl.cpp
Roman Tolchenov
committed
src/Mantid/InstrumentWidget/Shape2D.cpp
src/Mantid/InstrumentWidget/Shape2DCollection.cpp
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
)
###########################################################################
# Add the headers (so they show up in Visual Studio solutions)
###########################################################################
set ( QTIPLOT_HDRS src/ApplicationWindow.h
src/ArrowMarker.h
src/AssociationsDialog.h
src/AxesDialog.h
src/Bar.h
src/BoxCurve.h
src/CanvasPicker.h
src/ColorMapDialog.h
src/Cone3D.h
src/ConfigDialog.h
src/ContourLinesEditor.h
src/Convolution.h
src/Correlation.h
src/cursors.h
src/CurveRangeDialog.h
src/CurvesDialog.h
src/CustomActionDialog.h
src/customevents.h
src/DataPickerTool.h
src/DataSetDialog.h
src/Differentiation.h
src/ErrDialog.h
src/ExpDecayDialog.h
src/ExponentialFit.h
src/ExportDialog.h
src/FFTDialog.h
src/FFTFilter.h
src/FFT.h
src/FilterDialog.h
src/Filter.h
src/FindDialog.h
src/FitDialog.h
src/fit_gsl.h
src/Fit.h
src/FitModelHandler.h
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
src/Folder.h
src/FunctionCurve.h
src/FunctionDialog.h
src/globals.h
src/Graph3D.h
src/Graph.h
src/Grid.h
src/ImageDialog.h
src/ImageExportDialog.h
src/ImageMarker.h
src/ImportASCIIDialog.h
src/importOPJ.h
src/IntDialog.h
src/Integration.h
src/InterpolationDialog.h
src/Interpolation.h
src/LayerDialog.h
src/LegendWidget.h
src/LineDialog.h
src/LineProfileTool.h
src/LogisticFit.h
src/MatrixCommand.h
src/MatrixDialog.h
src/Matrix.h
src/MatrixModel.h
src/MatrixSizeDialog.h
src/MatrixValuesDialog.h
src/MdiSubWindow.h
src/MultiLayer.h
src/MultiPeakFit.h
src/MultiPeakFitTool.h
src/muParserScript.h
src/muParserScripting.h
src/MyParser.h
src/NonLinearFit.h
src/Note.h
src/nrutil.h
src/OpenProjectDialog.h
src/pixmaps.h
src/Plot3DDialog.h
src/PlotCurve.h
src/PlotDialog.h
src/PlotEnrichement.h
src/Plot.h
src/PlotToolInterface.h
src/PlotWizard.h
src/PluginFit.h
src/PolynomFitDialog.h
src/PolynomialFit.h
src/PythonScript.h
src/PythonScripting.h
src/PythonSystemHeader.h
src/QwtBarCurve.h
src/qwt_compat.h
src/QwtErrorPlotCurve.h
src/QwtHistogram.h
src/QwtPieCurve.h
src/RangeSelectorTool.h
src/RenameWindowDialog.h
src/resource.h
src/ScaleDraw.h
src/ScalePicker.h
src/ScreenPickerTool.h
src/Scripted.h
src/ScriptEdit.h
src/Script.h
src/ScriptingEnv.h
src/ScriptingLangDialog.h
src/ScriptingWindow.h
src/ScriptManagerWidget.h
src/SelectionMoveResizer.h
src/SetColValuesDialog.h
src/SigmoidalFit.h
src/SmoothCurveDialog.h
src/SmoothFilter.h
src/SortDialog.h
src/Spectrogram.h
src/SurfaceDialog.h
src/TableDialog.h
src/Table.h
src/TableStatistics.h
src/ThreadAdapter.h
src/TextDialog.h
src/TextEditor.h
src/TitlePicker.h
src/TranslateCurveTool.h
src/UserFunction.h
src/VectorCurve.h
src/analysis/fft2D.h
src/origin/OPJFile.h
src/plot2D/ImageSymbol.h
src/plot2D/ScaleEngine.h
Russell Taylor
committed
src/lib/include/CollapsiveGroupBox.h
Russell Taylor
committed
src/lib/include/ColorBox.h
src/lib/include/ColorButton.h
Russell Taylor
committed
src/lib/include/ColorMapEditor.h
src/lib/include/DoubleSpinBox.h
src/lib/include/ExtensibleFileDialog.h
src/lib/include/LineNumberDisplay.h
src/lib/include/PatternBox.h
src/lib/include/PenStyleBox.h
src/lib/include/SymbolBox.h
src/lib/include/SymbolDialog.h
src/lib/include/TextFormatButtons.h
Russell Taylor
committed
src/lib/3rdparty/qtcolorpicker/src/qtcolorpicker.h
set ( MANTID_HDRS src/Mantid/AbstractMantidLog.h
src/Mantid/AlgorithmMonitor.h
src/Mantid/AlgorithmHistoryWindow.h
src/Mantid/ErrorBarSettings.h
Gigg, Martyn Anthony
committed
src/Mantid/FirstTimeSetup.h
src/Mantid/FitParameterTie.h
src/Mantid/FlowLayout.h
src/Mantid/IFunctionWrapper.h
src/Mantid/ImportWorkspaceDlg.h
src/Mantid/InputHistory.h
src/Mantid/LoadDAEDlg.h
src/Mantid/ManageCustomMenus.h
src/Mantid/MantidAbout.h
src/Mantid/MantidApplication.h
src/Mantid/MantidCurve.h
src/Mantid/MantidDock.h
src/Mantid/MantidLog.h
src/Mantid/MantidMatrixCurve.h
src/Mantid/MantidMDCurve.h
src/Mantid/MantidMDCurveDialog.h
src/Mantid/MantidMatrixDialog.h
src/Mantid/MantidMatrix.h
src/Mantid/MantidSampleLogDialog.h
src/Mantid/MantidUI.h
Peter Parker
committed
src/Mantid/MantidWSIndexDialog.h
Roman Tolchenov
committed
src/Mantid/MantidTable.h
src/Mantid/PeakPickerTool.h
src/Mantid/Preferences.h
src/Mantid/RemoveErrorsDialog.h
src/Mantid/UserFitFunctionDialog.h
src/Mantid/InstrumentWidget/BinDialog.h
src/Mantid/InstrumentWidget/CompAssemblyActor.h
src/Mantid/InstrumentWidget/ComponentActor.h
src/Mantid/InstrumentWidget/SampleActor.h
src/Mantid/InstrumentWidget/GLActorCollection.h
src/Mantid/InstrumentWidget/GLActor.h
src/Mantid/InstrumentWidget/GLColor.h
src/Mantid/InstrumentWidget/GLObject.h
src/Mantid/InstrumentWidget/GLTrackball.h
src/Mantid/InstrumentWidget/GLViewport.h
src/Mantid/InstrumentWidget/ICompAssemblyActor.h
src/Mantid/InstrumentWidget/InstrumentActor.h
src/Mantid/InstrumentWidget/InstrumentTreeModel.h
src/Mantid/InstrumentWidget/InstrumentTreeWidget.h
src/Mantid/InstrumentWidget/InstrumentWindow.h
src/Mantid/InstrumentWidget/InstrumentWindowRenderTab.h
src/Mantid/InstrumentWidget/InstrumentWindowPickTab.h
Roman Tolchenov
committed
src/Mantid/InstrumentWidget/InstrumentWindowMaskTab.h
Roman Tolchenov
committed
src/Mantid/InstrumentWidget/MantidGLWidget.h
src/Mantid/InstrumentWidget/ColorMapWidget.h
src/Mantid/InstrumentWidget/ObjCompAssemblyActor.h
src/Mantid/InstrumentWidget/ObjComponentActor.h
src/Mantid/InstrumentWidget/OpenGLError.h
src/Mantid/InstrumentWidget/RectangularDetectorActor.h
src/Mantid/InstrumentWidget/UnwrappedCylinder.h
src/Mantid/InstrumentWidget/UnwrappedSphere.h
src/Mantid/InstrumentWidget/UnwrappedSurface.h
src/Mantid/InstrumentWidget/PeakMarker2D.h
src/Mantid/InstrumentWidget/PeakOverlay.h
Roman Tolchenov
committed
src/Mantid/InstrumentWidget/ProjectionSurface.h
src/Mantid/InstrumentWidget/Projection3D.h
src/Mantid/InstrumentWidget/OneCurvePlot.h
src/Mantid/InstrumentWidget/CollapsiblePanel.h
Owen Arnold
committed
src/Mantid/InstrumentWidget/DetSelector.h
Roman Tolchenov
committed
src/Mantid/InstrumentWidget/XIntegrationControl.h
Roman Tolchenov
committed
src/Mantid/InstrumentWidget/Shape2D.h
src/Mantid/InstrumentWidget/Shape2DCollection.h
###########################################################################
# Do the sip generation.
###########################################################################
find_package ( PyQt4 REQUIRED )
find_package ( SIP REQUIRED )
separate_arguments ( PYQT4_SIP_FLAGS )
set ( SIP_SPEC ${CMAKE_CURRENT_SOURCE_DIR}/src/qti.sip )
set ( SIP_SRC_IN ${CMAKE_CURRENT_SOURCE_DIR}/src/sipqti.cpp.in )
set ( SIP_SRC ${CMAKE_CURRENT_BINARY_DIR}/sipqti.cpp )
set ( SIP_SRC_AUTO sip_qtipart0.cpp )
Gigg, Martyn Anthony
committed
# We need to manually add all the headers that are in qti.sip
# so that the dependencies are known to CMake
set ( SIP_HDRS src/MdiSubWindow.h
src/Table.h
src/Matrix.h
src/ArrowMarker.h
src/ImageMarker.h
src/LegendWidget.h
src/Grid.h
src/Graph.h
src/MultiLayer.h
src/Note.h
src/Graph3D.h
src/ApplicationWindow.h
src/Spectrogram.h
src/PythonScripting.h
src/PythonScript.h
src/Folder.h
src/plot2D/ImageSymbol.h
src/Mantid/ErrorBarSettings.h
src/Mantid/MantidUI.h
src/Mantid/MantidMatrix.h
src/Mantid/InstrumentWidget/InstrumentWindow.h
)
Owen Arnold
committed
set( SRC_UNITY_IGNORE_FILES )
Gigg, Martyn Anthony
committed
###########################################################################
# Sip generated files
###########################################################################
# The code generated by sip causes compiler warnings therefore the
# generated file is wrapped by ${SIP_SRC} and these warnings are
# disabled. In order for VS2010 to to this correctly the second
# custom command below is required along with the committed
# src/sipqti.cpp.rule file.
add_custom_command ( OUTPUT ${SIP_SRC_AUTO}
COMMAND ${SIP_EXECUTABLE}
-I ${PYQT4_SIP_DIR} ${PYQT4_SIP_FLAGS}
-c ${CMAKE_CURRENT_BINARY_DIR} -j1 -w
${SIP_SPEC}
DEPENDS src/qti.sip ${SIP_HDRS}
COMMENT "Generating python bindings using sip"
)
Gigg, Martyn Anthony
committed
add_custom_command ( OUTPUT ${SIP_SRC}
COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${SIP_SRC_IN} ${SIP_SRC}
Gigg, Martyn Anthony
committed
DEPENDS ${SIP_SRC_AUTO}
COMMENT "Generating sip wrapper"
Gigg, Martyn Anthony
committed
)
Gigg, Martyn Anthony
committed
# Needed for sip.h header that can end up in a different place to to the main Python include directory
include_directories ( ${SIP_INCLUDE_DIR} )
# Needed for sip generated files to find includes in src
include_directories ( ${CMAKE_CURRENT_SOURCE_DIR} )
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
###########################################################################
# Specify the files that we need to pass to Qt macros
###########################################################################
set ( QTIPLOT_MOC_FILES src/ApplicationWindow.h
src/AssociationsDialog.h
src/AxesDialog.h
src/CanvasPicker.h
src/ColorMapDialog.h
src/ConfigDialog.h
src/ContourLinesEditor.h
src/Convolution.h
src/Correlation.h
src/CurveRangeDialog.h
src/CurvesDialog.h
src/CustomActionDialog.h
src/DataPickerTool.h
src/DataSetDialog.h
src/Differentiation.h
src/ErrDialog.h
src/ExpDecayDialog.h
src/ExponentialFit.h
src/ExportDialog.h
src/FFTDialog.h
src/FFTFilter.h
src/FFT.h
src/FilterDialog.h
src/Filter.h
src/FindDialog.h
src/FitDialog.h
src/Fit.h
src/Folder.h
src/FunctionDialog.h
src/Graph3D.h
src/Graph.h
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
src/ImageDialog.h
src/ImageExportDialog.h
src/ImportASCIIDialog.h
src/IntDialog.h
src/Integration.h
src/InterpolationDialog.h
src/Interpolation.h
src/LayerDialog.h
src/LegendWidget.h
src/LineDialog.h
src/LineProfileTool.h
src/LogisticFit.h
src/MatrixDialog.h
src/Matrix.h
src/MatrixModel.h
src/MatrixSizeDialog.h
src/MatrixValuesDialog.h
src/MdiSubWindow.h
src/MultiLayer.h
src/MultiPeakFit.h
src/MultiPeakFitTool.h
src/muParserScript.h
src/muParserScripting.h
src/NonLinearFit.h
src/Note.h
src/OpenProjectDialog.h
src/Plot3DDialog.h
src/PlotCurve.h
src/PlotDialog.h
src/Plot.h
src/PlotWizard.h
src/PluginFit.h
src/PolynomFitDialog.h
src/PolynomialFit.h
src/PythonScript.h
src/PythonScripting.h
src/QwtPieCurve.h
src/RangeSelectorTool.h
src/RenameWindowDialog.h
src/ScalePicker.h
src/ScreenPickerTool.h
src/ScriptEdit.h
src/Script.h
src/ScriptingEnv.h
src/ScriptingLangDialog.h
src/ScriptingWindow.h
src/ScriptManagerWidget.h
src/SelectionMoveResizer.h
src/SetColValuesDialog.h
src/SigmoidalFit.h
src/SmoothCurveDialog.h
src/SmoothFilter.h
src/SortDialog.h
src/SurfaceDialog.h
src/TableDialog.h
src/Table.h
src/TableStatistics.h
src/TextDialog.h
src/TextEditor.h
src/TitlePicker.h
src/ThreadAdapter.h
src/TranslateCurveTool.h
Russell Taylor
committed
src/lib/include/CollapsiveGroupBox.h
Russell Taylor
committed
src/lib/include/ColorBox.h
src/lib/include/ColorButton.h
Russell Taylor
committed
src/lib/include/ColorMapEditor.h
src/lib/include/DoubleSpinBox.h
src/lib/include/ExtensibleFileDialog.h
src/lib/include/LineNumberDisplay.h
src/lib/include/PatternBox.h
src/lib/include/PenStyleBox.h
src/lib/include/SymbolBox.h
src/lib/include/SymbolDialog.h
src/lib/include/TextFormatButtons.h
Russell Taylor
committed
src/lib/3rdparty/qtcolorpicker/src/qtcolorpicker.h
set ( MANTID_MOC_FILES src/Mantid/AlgorithmMonitor.h
src/Mantid/AlgorithmHistoryWindow.h
src/Mantid/ErrorBarSettings.h
Gigg, Martyn Anthony
committed
src/Mantid/FirstTimeSetup.h
src/Mantid/IFunctionWrapper.h
src/Mantid/ImportWorkspaceDlg.h
src/Mantid/LoadDAEDlg.h
src/Mantid/ManageCustomMenus.h
src/Mantid/MantidAbout.h
src/Mantid/MantidApplication.h
src/Mantid/MantidCurve.h
src/Mantid/MantidDock.h
src/Mantid/MantidLog.h
src/Mantid/MantidMatrixCurve.h
src/Mantid/MantidMDCurve.h
src/Mantid/MantidMDCurveDialog.h
src/Mantid/MantidMatrixDialog.h
src/Mantid/MantidMatrix.h
src/Mantid/MantidSampleLogDialog.h
src/Mantid/MantidUI.h
Peter Parker
committed
src/Mantid/MantidWSIndexDialog.h
Roman Tolchenov
committed
src/Mantid/MantidTable.h
src/Mantid/PeakPickerTool.h
src/Mantid/RemoveErrorsDialog.h
src/Mantid/UserFitFunctionDialog.h
Russell Taylor
committed
src/Mantid/InstrumentWidget/XIntegrationControl.h
src/Mantid/InstrumentWidget/BinDialog.h
src/Mantid/InstrumentWidget/InstrumentTreeModel.h
src/Mantid/InstrumentWidget/InstrumentTreeWidget.h
src/Mantid/InstrumentWidget/InstrumentWindow.h
src/Mantid/InstrumentWidget/InstrumentWindowRenderTab.h
src/Mantid/InstrumentWidget/InstrumentWindowPickTab.h
Roman Tolchenov
committed
src/Mantid/InstrumentWidget/InstrumentWindowMaskTab.h
src/Mantid/InstrumentWidget/ColorMapWidget.h
Russell Taylor
committed
src/Mantid/InstrumentWidget/MantidGLWidget.h
src/Mantid/InstrumentWidget/OneCurvePlot.h
src/Mantid/InstrumentWidget/CollapsiblePanel.h
src/Mantid/InstrumentWidget/InstrumentActor.h
src/Mantid/InstrumentWidget/PeakOverlay.h
src/Mantid/InstrumentWidget/ProjectionSurface.h
Roman Tolchenov
committed
src/Mantid/InstrumentWidget/Shape2DCollection.h
Robert Whitley
committed
set ( UI_FILES src/SendToProgramDialog.ui
src/Mantid/FirstTimeSetup.ui
Michael Whitty
committed
src/Mantid/UserFitFunctionDialog.ui
src/Mantid/MantidAbout.ui
src/Mantid/RemoveErrorsDialog.ui
src/Mantid/ManageCustomMenus.ui
src/Mantid/MantidMDCurveDialog.ui
qt4_wrap_cpp ( MOCCED_FILES ${QTIPLOT_MOC_FILES} ${MANTID_MOC_FILES} )
Russell Taylor
committed
# Call separate function on third-party code that expects moc output to have certain name
qt4_generate_moc ( src/lib/3rdparty/qtcolorpicker/src/qtcolorpicker.cpp
${CMAKE_CURRENT_BINARY_DIR}/qtcolorpicker.moc )
set_source_files_properties ( ${CMAKE_CURRENT_BINARY_DIR}/qtcolorpicker.moc
PROPERTIES HEADER_FILE_ONLY true )
set ( MOCCED_FILES ${MOCCED_FILES} ${CMAKE_CURRENT_BINARY_DIR}/qtcolorpicker.moc )
set ( SRC_FILES ${QTIPLOT_SRCS} ${MANTID_SRCS} ${SIP_SRC} )
set ( INC_FILES ${QTIPLOT_HDRS} ${MANTID_HDRS} )
set ( ALL_SRC ${SRC_FILES} ${MOCCED_FILES} )
# Use a precompiled header where they are supported
Gigg, Martyn Anthony
committed
ADD_PRECOMPILED_HEADER( src/PrecompiledHeader.h "" src/PrecompiledHeader.cpp ALL_SRC INC_FILES )
qt4_wrap_ui ( UI_HDRS ${UI_FILES} )
Janik Zikovsky
committed
# The generated ui headers will go here:
include_directories ( ${CMAKE_CURRENT_BINARY_DIR} )
Janik Zikovsky
committed
###########################################################################
Gigg, Martyn Anthony
committed
# Internal icon links
Janik Zikovsky
committed
###########################################################################
qt4_add_resources ( RES_FILES ${PROJECT_SOURCE_DIR}/Images/images.qrc )
Janik Zikovsky
committed
qt4_add_resources ( RES_FILES ${PROJECT_SOURCE_DIR}/MantidQt/SliceViewer/icons/SliceViewerIcons.qrc )
qt4_add_resources ( RES_FILES ${PROJECT_SOURCE_DIR}/Vates/VatesSimpleGui/ViewWidgets/icons/ViewWidgetsIcons.qrc )
###########################################################################
# Add the dependencies
###########################################################################
Russell Taylor
committed
include_directories ( SYSTEM ${MUPARSER_INCLUDE_DIR} )
include_directories ( ${ZLIB_INCLUDE_DIRS} )
Russell Taylor
committed
include_directories ( SYSTEM ${QWT_INCLUDE_DIR} )
find_package ( QwtPlot3d REQUIRED )
Russell Taylor
committed
include_directories ( SYSTEM ${QWTPLOT3D_INCLUDE_DIR} )
find_package ( QScintilla REQUIRED )
include_directories ( ${QSCINTILLA_INCLUDE_DIR} )
###########################################################################
# Add OpenMP flags here
###########################################################################
if ( OPENMP_FOUND )
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}" )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}" )
endif ()
###########################################################################
# Now create the target and add its dependencies and flags
###########################################################################
add_definitions ( -DSCRIPTING_MUPARSER )
add_definitions ( -DSCRIPTING_PYTHON )
add_definitions ( -DQSCINTILLA_DLL ) # Will only have an effect on Windows (as is desired)
include_directories ( src )
Russell Taylor
committed
include_directories ( src/lib/include )
include_directories ( src/lib/3rdparty/qtcolorpicker/src )
include_directories ( ../MantidQt/SliceViewer/inc )
include_directories ( ../MantidQt/Factory/inc )
Gigg, Martyn Anthony
committed
###########################################################################
Gigg, Martyn Anthony
committed
# Application icon files
Gigg, Martyn Anthony
committed
###########################################################################
if( WIN32 )
Gigg, Martyn Anthony
committed
set ( MANTID_RC_FILE icons/MantidPlotDesktop.rc )
Gigg, Martyn Anthony
committed
if ( CONSOLE )
set ( WIN_CONSOLE )
else ()
set( WIN_CONSOLE WIN32 )
endif( CONSOLE )
Gigg, Martyn Anthony
committed
endif( WIN32 )
if ( APPLE )
set ( MANTID_RC_FILE ${CMAKE_SOURCE_DIR}/Images/MantidPlot.icns )
set_source_files_properties(MANTID_RC_FILE PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
endif ()
add_executable ( MantidPlot ${WIN_CONSOLE} MACOSX_BUNDLE ${ALL_SRC} src/main.cpp
${INC_FILES} ${QTIPLOT_C_SRC} ${UI_HDRS}
${RES_FILES} ${MANTID_RC_FILE}
Gigg, Martyn Anthony
committed
# Library dependencies
target_link_libraries ( MantidPlot
${CORE_MANTIDLIBS}
MantidQtAPI MantidWidgets MantidQtSliceViewer MantidQtFactory
QtPropertyBrowser ${QT_LIBRARIES}
${QWT_LIBRARIES} ${QWTPLOT3D_LIBRARIES}
${QSCINTILLA_LIBRARIES}
${PYTHON_LIBRARIES}
Janik Zikovsky
committed
${ZLIB_LIBRARIES}
Gigg, Martyn Anthony
committed
Janik Zikovsky
committed
###########################################################################
Gigg, Martyn Anthony
committed
# Entry point flag for Windows to ensure we always link to standard main
###########################################################################
Gigg, Martyn Anthony
committed
if( WIN32 )
Gigg, Martyn Anthony
committed
set_target_properties( MantidPlot PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup" )
if ( CONSOLE )
set_target_properties( MantidPlot PROPERTIES COMPILE_DEFINITIONS "_CONSOLE" )
endif ( CONSOLE )
Gigg, Martyn Anthony
committed
endif( WIN32 )
###########################################################################
# Now copy the required python files into the build destination
###########################################################################
set ( PYTHON_INSTALL_FILES mantidplotrc.py mantidplot.py)
foreach ( PYFILE ${PYTHON_INSTALL_FILES} )
# Command to copy when MantidPlot rebuilds. Does not work if the .py files ONLY were modified!
add_custom_command ( TARGET MantidPlot POST_BUILD
COMMAND ${CMAKE_COMMAND} ARGS -E copy
${CMAKE_CURRENT_SOURCE_DIR}/${PYFILE}
${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}
DEPENDS ${PYFILE}
COMMENT "Copying ${PYFILE}"
)
# Perform a copy at cmake run time
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/${PYFILE} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR} COPYONLY )
endforeach ( PYFILE ${PYTHON_INSTALL_FILES} )
Russell Taylor
committed
add_custom_command ( TARGET MantidPlot POST_BUILD
COMMAND ${CMAKE_COMMAND} ARGS -E copy_directory
${CMAKE_CURRENT_SOURCE_DIR}/mantidplotpy
${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/mantidplotpy
add_custom_command ( TARGET MantidPlot POST_BUILD
COMMAND ${CMAKE_COMMAND} ARGS -E copy_directory
${CMAKE_CURRENT_SOURCE_DIR}/ipython_plugin
${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/ipython_plugin
)
###########################################################################
# Documentation targets
###########################################################################
add_subdirectory( docs )
###########################################################################
# MantidPlot Python Unit Tests
###########################################################################
# List of .py files than must be run WITHIN MantidPlot.
set ( MANTIDPLOT_TEST_PY_FILES
MantidPlotSliceViewerTest.py
MantidPlotProxiesTest.py
MantidPlotPythonImportTest.py
MantidPlotFoldersTest.py
if ( 0 )
message (STATUS "Your CMAKE_SYSTEM string is '${CMAKE_SYSTEM}'")
message (STATUS "Your CMAKE_SYSTEM_NAME string is '${CMAKE_SYSTEM_NAME}'")
message (STATUS "Your CMAKE_BINARY_DIR string is '${CMAKE_BINARY_DIR}'")
message (STATUS "Your BIN_DIR string is '${BIN_DIR}'")
message (STATUS "Your CMAKE_LIBRARY_OUTPUT_DIRECTORY string is '${CMAKE_LIBRARY_OUTPUT_DIRECTORY}'")
message (STATUS "Your CMAKE_CFG_INTDIR string is '${CMAKE_CFG_INTDIR}'")
message (STATUS "Your CMAKE_CURRENT_BINARY_DIR string is '${CMAKE_CURRENT_BINARY_DIR}'")
endif ()
# Check system version
if ( ${CMAKE_SYSTEM} MATCHES ".*\\.el5" )
# This is RHEL5. GUI tests hang on this platform for some reason
message ( "RHEL5 hangs on GUI tests. Disabling MantidPlot python tests." )
else ()
# Find the path to the built MantidPlot app. Need different paths for MAC for some reason.
set (MANTIDPLOT_PATH "${CMAKE_BINARY_DIR}/${BIN_DIR}/MantidPlot" )
# Screenshots destination
if ("$ENV{WORKSPACE}" STREQUAL "")
set (SCREENSHOTS_DIR "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/screenshots" )
else ()
set (SCREENSHOTS_DIR "$ENV{WORKSPACE}/screenshots" )
endif ()
# Add an environment property MANTID_SOURCE so that the script can find the source of xmlrunner
set (TEST_ENVIRONMENT "MANTID_SOURCE=${CMAKE_SOURCE_DIR};MANTID_SCREENSHOT_REPORT=${SCREENSHOTS_DIR}" )
# Fixes for Darwin (MacOS)
if ( ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set (MANTIDPLOT_PATH "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${BIN_DIR}/MantidPlot" )
# Append to the path and set MANTIDPATH for MacOS' MantidPlot to run
set (TEST_ENVIRONMENT "PATH=$ENV{PATH}:${CMAKE_LIBRARY_OUTPUT_DIRECTORY};MANTIDPATH=${CMAKE_LIBRARY_OUTPUT_DIRECTORY};MANTID_SOURCE=${CMAKE_SOURCE_DIR};MANTID_SCREENSHOT_REPORT=${SCREENSHOTS_DIR}" )
# Make a ctest target for each file
foreach ( PYFILE ${MANTIDPLOT_TEST_PY_FILES} )
# Add the test. Name of test = name of the file
ADD_TEST( ${PYFILE} ${MANTIDPLOT_PATH} -xq ${CMAKE_CURRENT_SOURCE_DIR}/test/${PYFILE} )
# Set the previously-built environment
set_tests_properties( ${PYFILE} PROPERTIES ENVIRONMENT "${TEST_ENVIRONMENT}")
Russell Taylor
committed
###########################################################################
# Installation settings
###########################################################################
install ( TARGETS MantidPlot RUNTIME DESTINATION ${BIN_DIR}
BUNDLE DESTINATION .
)
install ( FILES ${PYTHON_INSTALL_FILES} DESTINATION ${BIN_DIR} )
install ( DIRECTORY mantidplotpy DESTINATION ${BIN_DIR} )
install ( DIRECTORY ipython_plugin DESTINATION ${BIN_DIR} )
if ( APPLE )
configure_file ( ${CMAKE_CURRENT_SOURCE_DIR}/FixBundle.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/FixBundle.cmake
@ONLY
)
install ( SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/FixBundle.cmake )
endif ()