##// END OF EJS Templates
Make GUI tests optional...
jeandet -
r1490:40feff5bffd4
parent child
Show More
@@ -0,0 +1,1
1 option('biuld_gui_tests', type : 'boolean', value : true, description : 'Build GUI tests.')
@@ -1,176 +1,179
1
1
2 gui_moc_headers = [
2 gui_moc_headers = [
3 './include/Common/VisualizationDef.h',
3 './include/Common/VisualizationDef.h',
4 './include/Common/ColorUtils.h',
4 './include/Common/ColorUtils.h',
5 './include/DragAndDrop/DragDropGuiController.h',
5 './include/DragAndDrop/DragDropGuiController.h',
6 './include/DragAndDrop/DragDropTabSwitcher.h',
6 './include/DragAndDrop/DragDropTabSwitcher.h',
7 './include/DragAndDrop/DragDropScroller.h',
7 './include/DragAndDrop/DragDropScroller.h',
8 './include/Settings/SqpSettingsDialog.h',
8 './include/Settings/SqpSettingsDialog.h',
9 './include/Settings/SqpSettingsGeneralWidget.h',
9 './include/Settings/SqpSettingsGeneralWidget.h',
10 './include/DataSource/DataSourceTreeWidgetHelper.h',
10 './include/DataSource/DataSourceTreeWidgetHelper.h',
11 './include/DataSource/DataSourceTreeWidget.h',
11 './include/DataSource/DataSourceTreeWidget.h',
12 './include/DataSource/DataSourceTreeWidgetItem.h',
12 './include/DataSource/DataSourceTreeWidgetItem.h',
13 './include/DataSource/DataSourceWidget.h',
13 './include/DataSource/DataSourceWidget.h',
14 './include/Catalogue2/repositoriestreeview.h',
14 './include/Catalogue2/repositoriestreeview.h',
15 './include/Catalogue2/browser.h',
15 './include/Catalogue2/browser.h',
16 './include/Catalogue2/eventeditor.h',
16 './include/Catalogue2/eventeditor.h',
17 './include/Catalogue2/eventsmodel.h',
17 './include/Catalogue2/eventsmodel.h',
18 './include/Catalogue2/eventstreeview.h',
18 './include/Catalogue2/eventstreeview.h',
19 './include/Catalogue2/repositoriesmodel.h',
19 './include/Catalogue2/repositoriesmodel.h',
20 './include/TimeWidget/TimeWidget.h',
20 './include/TimeWidget/TimeWidget.h',
21 './include/SqpApplication.h',
21 './include/SqpApplication.h',
22 './include/SidePane/SqpSidePane.h',
22 './include/SidePane/SqpSidePane.h',
23 './include/Variable/RenameVariableDialog.h',
23 './include/Variable/RenameVariableDialog.h',
24 './include/Variable/VariableInspectorWidget.h',
24 './include/Variable/VariableInspectorWidget.h',
25 './include/Variable/VariableInspectorTableView.h',
25 './include/Variable/VariableInspectorTableView.h',
26 './include/Variable/VariableMenuHeaderWidget.h',
26 './include/Variable/VariableMenuHeaderWidget.h',
27 './include/Visualization/VisualizationDragWidget.h',
27 './include/Visualization/VisualizationDragWidget.h',
28 './include/Visualization/VisualizationZoneWidget.h',
28 './include/Visualization/VisualizationZoneWidget.h',
29 './include/Visualization/operations/GenerateVariableMenuOperation.h',
29 './include/Visualization/operations/GenerateVariableMenuOperation.h',
30 './include/Visualization/operations/RescaleAxeOperation.h',
30 './include/Visualization/operations/RescaleAxeOperation.h',
31 './include/Visualization/operations/RemoveVariableOperation.h',
31 './include/Visualization/operations/RemoveVariableOperation.h',
32 './include/Visualization/operations/MenuBuilder.h',
32 './include/Visualization/operations/MenuBuilder.h',
33 './include/Visualization/operations/FindVariableOperation.h',
33 './include/Visualization/operations/FindVariableOperation.h',
34 './include/Visualization/VisualizationDefs.h',
34 './include/Visualization/VisualizationDefs.h',
35 './include/Visualization/IVisualizationWidgetVisitor.h',
35 './include/Visualization/IVisualizationWidgetVisitor.h',
36 './include/Visualization/SqpColorScale.h',
36 './include/Visualization/SqpColorScale.h',
37 './include/Visualization/VisualizationGraphRenderingDelegate.h',
37 './include/Visualization/VisualizationGraphRenderingDelegate.h',
38 './include/Visualization/VisualizationGraphWidget.h',
38 './include/Visualization/VisualizationGraphWidget.h',
39 './include/Visualization/MacScrollBarStyle.h',
39 './include/Visualization/MacScrollBarStyle.h',
40 './include/Visualization/IVisualizationWidget.h',
40 './include/Visualization/IVisualizationWidget.h',
41 './include/Visualization/qcustomplot.h',
41 './include/Visualization/qcustomplot.h',
42 './include/Visualization/IGraphSynchronizer.h',
42 './include/Visualization/IGraphSynchronizer.h',
43 './include/Visualization/QCPColorMapIterator.h',
43 './include/Visualization/QCPColorMapIterator.h',
44 './include/Visualization/VisualizationActionManager.h',
44 './include/Visualization/VisualizationActionManager.h',
45 './include/Visualization/VisualizationTabWidget.h',
45 './include/Visualization/VisualizationTabWidget.h',
46 './include/Visualization/IVariableContainer.h',
46 './include/Visualization/IVariableContainer.h',
47 './include/Visualization/AxisRenderingUtils.h',
47 './include/Visualization/AxisRenderingUtils.h',
48 './include/Visualization/VisualizationMultiZoneSelectionDialog.h',
48 './include/Visualization/VisualizationMultiZoneSelectionDialog.h',
49 './include/Visualization/VisualizationCursorItem.h',
49 './include/Visualization/VisualizationCursorItem.h',
50 './include/Visualization/VisualizationWidget.h',
50 './include/Visualization/VisualizationWidget.h',
51 './include/Visualization/PlottablesRenderingUtils.h',
51 './include/Visualization/PlottablesRenderingUtils.h',
52 './include/Visualization/VisualizationSelectionZoneManager.h',
52 './include/Visualization/VisualizationSelectionZoneManager.h',
53 './include/Visualization/QCustomPlotSynchronizer.h',
53 './include/Visualization/QCustomPlotSynchronizer.h',
54 './include/Visualization/VisualizationSelectionZoneItem.h',
54 './include/Visualization/VisualizationSelectionZoneItem.h',
55 './include/Visualization/VisualizationDragDropContainer.h',
55 './include/Visualization/VisualizationDragDropContainer.h',
56 './include/Visualization/ColorScaleEditor.h',
56 './include/Visualization/ColorScaleEditor.h',
57 './include/Visualization/VisualizationGraphHelper.h',
57 './include/Visualization/VisualizationGraphHelper.h',
58 './include/Actions/ActionsGuiController.h',
58 './include/Actions/ActionsGuiController.h',
59 './include/Actions/FilteringAction.h',
59 './include/Actions/FilteringAction.h',
60 './include/Actions/SelectionZoneAction.h'
60 './include/Actions/SelectionZoneAction.h'
61 ]
61 ]
62
62
63
63
64 gui_ui_files = [
64 gui_ui_files = [
65 './ui/Settings/SqpSettingsGeneralWidget.ui',
65 './ui/Settings/SqpSettingsGeneralWidget.ui',
66 './ui/Settings/SqpSettingsDialog.ui',
66 './ui/Settings/SqpSettingsDialog.ui',
67 './ui/DataSource/DataSourceWidget.ui',
67 './ui/DataSource/DataSourceWidget.ui',
68 './ui/Catalogue2/browser.ui',
68 './ui/Catalogue2/browser.ui',
69 './ui/Catalogue2/eventeditor.ui',
69 './ui/Catalogue2/eventeditor.ui',
70 './ui/TimeWidget/TimeWidget.ui',
70 './ui/TimeWidget/TimeWidget.ui',
71 './ui/SidePane/SqpSidePane.ui',
71 './ui/SidePane/SqpSidePane.ui',
72 './ui/Variable/RenameVariableDialog.ui',
72 './ui/Variable/RenameVariableDialog.ui',
73 './ui/Variable/VariableInspectorWidget.ui',
73 './ui/Variable/VariableInspectorWidget.ui',
74 './ui/Variable/VariableMenuHeaderWidget.ui',
74 './ui/Variable/VariableMenuHeaderWidget.ui',
75 './ui/Visualization/ColorScaleEditor.ui',
75 './ui/Visualization/ColorScaleEditor.ui',
76 './ui/Visualization/VisualizationZoneWidget.ui',
76 './ui/Visualization/VisualizationZoneWidget.ui',
77 './ui/Visualization/VisualizationMultiZoneSelectionDialog.ui',
77 './ui/Visualization/VisualizationMultiZoneSelectionDialog.ui',
78 './ui/Visualization/VisualizationGraphWidget.ui',
78 './ui/Visualization/VisualizationGraphWidget.ui',
79 './ui/Visualization/VisualizationWidget.ui',
79 './ui/Visualization/VisualizationWidget.ui',
80 './ui/Visualization/VisualizationTabWidget.ui'
80 './ui/Visualization/VisualizationTabWidget.ui'
81 ]
81 ]
82
82
83 gui_qresources = ['resources/sqpguiresources.qrc']
83 gui_qresources = ['resources/sqpguiresources.qrc']
84
84
85 rcc_gen = generator(rcc,
85 rcc_gen = generator(rcc,
86 output : 'qrc_@BASENAME@.cpp',
86 output : 'qrc_@BASENAME@.cpp',
87 arguments : [
87 arguments : [
88 '--output',
88 '--output',
89 '@OUTPUT@',
89 '@OUTPUT@',
90 '@INPUT@',
90 '@INPUT@',
91 '@EXTRA_ARGS@'])
91 '@EXTRA_ARGS@'])
92
92
93 rcc_files = rcc_gen.process(gui_qresources, extra_args : ['-name', 'sqpguiresources'])
93 rcc_files = rcc_gen.process(gui_qresources, extra_args : ['-name', 'sqpguiresources'])
94
94
95 gui_moc_files = qt5.preprocess(moc_headers : gui_moc_headers,
95 gui_moc_files = qt5.preprocess(moc_headers : gui_moc_headers,
96 ui_files : gui_ui_files)
96 ui_files : gui_ui_files)
97
97
98 gui_sources = [
98 gui_sources = [
99 './src/Common/ColorUtils.cpp',
99 './src/Common/ColorUtils.cpp',
100 './src/Common/VisualizationDef.cpp',
100 './src/Common/VisualizationDef.cpp',
101 './src/SqpApplication.cpp',
101 './src/SqpApplication.cpp',
102 './src/DragAndDrop/DragDropTabSwitcher.cpp',
102 './src/DragAndDrop/DragDropTabSwitcher.cpp',
103 './src/DragAndDrop/DragDropScroller.cpp',
103 './src/DragAndDrop/DragDropScroller.cpp',
104 './src/DragAndDrop/DragDropGuiController.cpp',
104 './src/DragAndDrop/DragDropGuiController.cpp',
105 './src/Settings/SqpSettingsGeneralWidget.cpp',
105 './src/Settings/SqpSettingsGeneralWidget.cpp',
106 './src/Settings/SqpSettingsDialog.cpp',
106 './src/Settings/SqpSettingsDialog.cpp',
107 './src/DataSource/DataSourceTreeWidgetItem.cpp',
107 './src/DataSource/DataSourceTreeWidgetItem.cpp',
108 './src/DataSource/DataSourceTreeWidgetHelper.cpp',
108 './src/DataSource/DataSourceTreeWidgetHelper.cpp',
109 './src/DataSource/DataSourceWidget.cpp',
109 './src/DataSource/DataSourceWidget.cpp',
110 './src/DataSource/DataSourceTreeWidget.cpp',
110 './src/DataSource/DataSourceTreeWidget.cpp',
111 './src/Catalogue2/eventstreeview.cpp',
111 './src/Catalogue2/eventstreeview.cpp',
112 './src/Catalogue2/eventeditor.cpp',
112 './src/Catalogue2/eventeditor.cpp',
113 './src/Catalogue2/repositoriestreeview.cpp',
113 './src/Catalogue2/repositoriestreeview.cpp',
114 './src/Catalogue2/browser.cpp',
114 './src/Catalogue2/browser.cpp',
115 './src/Catalogue2/eventsmodel.cpp',
115 './src/Catalogue2/eventsmodel.cpp',
116 './src/Catalogue2/repositoriesmodel.cpp',
116 './src/Catalogue2/repositoriesmodel.cpp',
117 './src/TimeWidget/TimeWidget.cpp',
117 './src/TimeWidget/TimeWidget.cpp',
118 './src/SidePane/SqpSidePane.cpp',
118 './src/SidePane/SqpSidePane.cpp',
119 './src/Variable/VariableInspectorTableView.cpp',
119 './src/Variable/VariableInspectorTableView.cpp',
120 './src/Variable/VariableInspectorWidget.cpp',
120 './src/Variable/VariableInspectorWidget.cpp',
121 './src/Variable/RenameVariableDialog.cpp',
121 './src/Variable/RenameVariableDialog.cpp',
122 './src/Variable/VariableMenuHeaderWidget.cpp',
122 './src/Variable/VariableMenuHeaderWidget.cpp',
123 './src/Visualization/VisualizationGraphWidget.cpp',
123 './src/Visualization/VisualizationGraphWidget.cpp',
124 './src/Visualization/PlottablesRenderingUtils.cpp',
124 './src/Visualization/PlottablesRenderingUtils.cpp',
125 './src/Visualization/AxisRenderingUtils.cpp',
125 './src/Visualization/AxisRenderingUtils.cpp',
126 './src/Visualization/VisualizationWidget.cpp',
126 './src/Visualization/VisualizationWidget.cpp',
127 './src/Visualization/qcustomplot.cpp',
127 './src/Visualization/qcustomplot.cpp',
128 './src/Visualization/VisualizationDragWidget.cpp',
128 './src/Visualization/VisualizationDragWidget.cpp',
129 './src/Visualization/VisualizationActionManager.cpp',
129 './src/Visualization/VisualizationActionManager.cpp',
130 './src/Visualization/MacScrollBarStyle.cpp',
130 './src/Visualization/MacScrollBarStyle.cpp',
131 './src/Visualization/VisualizationSelectionZoneManager.cpp',
131 './src/Visualization/VisualizationSelectionZoneManager.cpp',
132 './src/Visualization/operations/FindVariableOperation.cpp',
132 './src/Visualization/operations/FindVariableOperation.cpp',
133 './src/Visualization/operations/RescaleAxeOperation.cpp',
133 './src/Visualization/operations/RescaleAxeOperation.cpp',
134 './src/Visualization/operations/MenuBuilder.cpp',
134 './src/Visualization/operations/MenuBuilder.cpp',
135 './src/Visualization/operations/GenerateVariableMenuOperation.cpp',
135 './src/Visualization/operations/GenerateVariableMenuOperation.cpp',
136 './src/Visualization/operations/RemoveVariableOperation.cpp',
136 './src/Visualization/operations/RemoveVariableOperation.cpp',
137 './src/Visualization/VisualizationSelectionZoneItem.cpp',
137 './src/Visualization/VisualizationSelectionZoneItem.cpp',
138 './src/Visualization/VisualizationCursorItem.cpp',
138 './src/Visualization/VisualizationCursorItem.cpp',
139 './src/Visualization/QCPColorMapIterator.cpp',
139 './src/Visualization/QCPColorMapIterator.cpp',
140 './src/Visualization/QCustomPlotSynchronizer.cpp',
140 './src/Visualization/QCustomPlotSynchronizer.cpp',
141 './src/Visualization/ColorScaleEditor.cpp',
141 './src/Visualization/ColorScaleEditor.cpp',
142 './src/Visualization/VisualizationMultiZoneSelectionDialog.cpp',
142 './src/Visualization/VisualizationMultiZoneSelectionDialog.cpp',
143 './src/Visualization/VisualizationTabWidget.cpp',
143 './src/Visualization/VisualizationTabWidget.cpp',
144 './src/Visualization/VisualizationGraphHelper.cpp',
144 './src/Visualization/VisualizationGraphHelper.cpp',
145 './src/Visualization/VisualizationGraphRenderingDelegate.cpp',
145 './src/Visualization/VisualizationGraphRenderingDelegate.cpp',
146 './src/Visualization/VisualizationDragDropContainer.cpp',
146 './src/Visualization/VisualizationDragDropContainer.cpp',
147 './src/Visualization/VisualizationZoneWidget.cpp',
147 './src/Visualization/VisualizationZoneWidget.cpp',
148 './src/Visualization/SqpColorScale.cpp',
148 './src/Visualization/SqpColorScale.cpp',
149 './src/Actions/FilteringAction.cpp',
149 './src/Actions/FilteringAction.cpp',
150 './src/Actions/SelectionZoneAction.cpp',
150 './src/Actions/SelectionZoneAction.cpp',
151 './src/Actions/ActionsGuiController.cpp'
151 './src/Actions/ActionsGuiController.cpp'
152 ]
152 ]
153
153
154 gui_inc = include_directories(['include', 'include/Visualization'])
154 gui_inc = include_directories(['include', 'include/Visualization'])
155
155
156 sciqlop_gui_lib = library('sciqlopgui',
156 sciqlop_gui_lib = library('sciqlopgui',
157 gui_sources,
157 gui_sources,
158 gui_moc_files,
158 gui_moc_files,
159 rcc_files,
159 rcc_files,
160 include_directories : [gui_inc],
160 include_directories : [gui_inc],
161 dependencies : [ qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core],
161 dependencies : [ qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core],
162 install : true
162 install : true
163 )
163 )
164
164
165 sciqlop_gui = declare_dependency(link_with : sciqlop_gui_lib,
165 sciqlop_gui = declare_dependency(link_with : sciqlop_gui_lib,
166 include_directories : gui_inc,
166 include_directories : gui_inc,
167 dependencies : [qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core])
167 dependencies : [qt5printsupport, qt5gui, qt5widgets, qt5svg, sciqlop_core])
168
168
169 gui_tests_inc = include_directories(['tests/GUITestUtils'])
169 gui_tests_inc = include_directories(['tests/GUITestUtils'])
170
170
171 catalogue_browser_moc_files = qt5.preprocess(moc_sources : 'tests/catalogue/browser/main.cpp')
171 catalogue_browser_moc_files = qt5.preprocess(moc_sources : 'tests/catalogue/browser/main.cpp')
172 catalogue_browser = executable('catalogue_browser', 'tests/catalogue/browser/main.cpp',catalogue_browser_moc_files,
172 catalogue_browser = executable('catalogue_browser', 'tests/catalogue/browser/main.cpp',catalogue_browser_moc_files,
173 include_directories : gui_tests_inc,
173 include_directories : gui_tests_inc,
174 dependencies :[sciqlop_gui, qt5test])
174 dependencies :[sciqlop_gui, qt5test])
175
175
176 subdir('tests')
176
177 if get_option('biuld_gui_tests')
178 subdir('tests')
179 endif
General Comments 0
You need to be logged in to leave comments. Login now