Salome HOME
Revert "Synchronize adm files"
[modules/yacs.git] / src / genericgui / CMakeLists.txt
1 # Copyright (C) 2012-2014  CEA/DEN, EDF R&D
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 # --- options ---
21
22 # additional include directories
23 INCLUDE_DIRECTORIES(
24   ${PYTHON_INCLUDE_DIR}
25   ${EXPAT_INCLUDE_DIR}
26   ${OMNIORB_INCLUDE_DIR}
27   ${LIBXML2_INCLUDE_DIR}
28   ${GRAPHVIZ_INCLUDE_DIRS}
29   ${QT_INCLUDES}
30   ${QSCINTILLA_INCLUDE_DIRS}
31   ${KERNEL_INCLUDE_DIRS}
32   ${GUI_INCLUDE_DIRS}
33   ${PROJECT_BINARY_DIR}/src/genericgui
34   ${PROJECT_SOURCE_DIR}/src
35   ${PROJECT_SOURCE_DIR}/src/bases
36   ${PROJECT_SOURCE_DIR}/src/engine
37   ${PROJECT_SOURCE_DIR}/src/runtime
38   ${PROJECT_SOURCE_DIR}/src/yacsloader
39   ${PROJECT_SOURCE_DIR}/src/hmi
40   ${PROJECT_SOURCE_DIR}/src/salomewrap
41   ${PROJECT_SOURCE_DIR}/src/genericgui
42   ${PROJECT_BINARY_DIR}/idl
43   ${PROJECT_BINARY_DIR}/src/yacsorb
44   )
45
46 # additional preprocessor / compiler flags
47 ADD_DEFINITIONS(
48   ${QT_DEFINITIONS}
49   ${PYTHON_DEFINITIONS}
50   ${GRAPHVIZ_DEFINITIONS}
51   ${OMNIORB_DEFINITIONS}
52   ${KERNEL_DEFINITIONS}
53   ${GUI_DEFINITIONS}
54   )
55
56 # libraries to link to
57 SET(_link_LIBRARIES
58   ${QT_LIBRARIES}
59   ${QSCINTILLA_LIBRARIES}
60   YACSRuntimeSALOME
61   YACSloader
62   SalomeWrap
63   HMI
64   SalomeResourcesManager
65   ${EXPAT_LIBRARIES}
66   ${LIBXML2_LIBRARIES}
67   ${GRAPHVIZ_LIBRARIES}
68   )
69
70 # --- resources ---
71
72 # resource files / to be processed by uic
73 SET(_uic_files
74   FormComponent.ui
75   FormContainer.ui
76   FormEachLoop.ui
77   FormEditItem.ui
78   FormEditTree.ui
79   FormLoop.ui
80   FormSchemaView.ui
81   FormUndoRedo.ui
82   LogViewer.ui
83   TablePorts.ui
84   TableSwitch.ui
85   CaseSwitch.ui
86   FormOptimizerLoop.ui
87   )
88
89 # --- headers ---
90
91 SET(GenericGui_HEADERS
92   )
93
94 # header files / to be processed by moc
95 SET(_moc_HEADERS
96   CaseSwitch.hxx
97   EditionBloc.hxx
98   EditionComponent.hxx
99   EditionContainer.hxx
100   EditionControlLink.hxx
101   EditionDataLink.hxx
102   EditionDataType.hxx
103   EditionElementaryNode.hxx
104   EditionForEachLoop.hxx
105   EditionOptimizerLoop.hxx
106   EditionInputPort.hxx
107   EditionLoop.hxx
108   EditionNode.hxx
109   EditionOutNode.hxx
110   EditionOutputPort.hxx
111   EditionPresetNode.hxx
112   EditionProc.hxx
113   EditionPyFunc.hxx
114   EditionSalomeNode.hxx
115   EditionScript.hxx
116   EditionStudyInNode.hxx
117   EditionStudyOutNode.hxx
118   EditionSwitch.hxx
119   EditionWhile.hxx
120   FormComponent.hxx
121   FormContainer.hxx
122   FormEachLoop.hxx
123   FormEditItem.hxx
124   FormEditTree.hxx
125   FormLoop.hxx
126   FormOptimizerLoop.hxx
127   FormSchemaView.hxx
128   FormUndoRedo.hxx
129   GenericGui.hxx
130   GraphicsView.hxx
131   ItemEdition.hxx
132   ListJobs_GUI.hxx
133   LogViewer.hxx
134   Menus.hxx
135   PropertyEditor.hxx
136   SchemaComponentItem.hxx
137   SchemaComposedNodeItem.hxx
138   SchemaContainerItem.hxx
139   SchemaDataTypeItem.hxx
140   SchemaDirContainersItem.hxx
141   SchemaDirLinksItem.hxx
142   SchemaDirTypesItem.hxx
143   SchemaInPortItem.hxx
144   SchemaItem.hxx
145   SchemaLinkItem.hxx
146   SchemaModel.hxx
147   SchemaNodeItem.hxx
148   SchemaOutPortItem.hxx
149   SchemaProcItem.hxx
150   SchemaReferenceItem.hxx
151   TablePortsEdition.hxx
152   TableSwitch.hxx
153   TreeView.hxx
154   YACSWidgets.hxx
155   ValueDelegate.hxx
156   )
157
158 # header files / uic wrappings
159 QT4_WRAP_UI(_uic_HEADERS ${_uic_files})
160
161 # --- sources ---
162
163 # sources / moc wrappings
164 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
165
166 SET(GenericGui_SOURCES
167   GenericGuiExport.hxx
168   CaseSwitch.hxx
169   CaseSwitch.cxx
170   CatalogWidget.hxx
171   CatalogWidget.cxx
172   EditionBloc.hxx
173   EditionBloc.cxx
174   EditionComponent.hxx
175   EditionComponent.cxx            
176   EditionContainer.hxx            
177   EditionContainer.cxx            
178   EditionControlLink.hxx          
179   EditionControlLink.cxx          
180   EditionDataLink.hxx             
181   EditionDataLink.cxx             
182   EditionDataType.hxx             
183   EditionDataType.cxx             
184   EditionElementaryNode.hxx       
185   EditionElementaryNode.cxx       
186   EditionForEachLoop.hxx          
187   EditionForEachLoop.cxx          
188   EditionOptimizerLoop.hxx        
189   EditionOptimizerLoop.cxx        
190   EditionInputPort.hxx            
191   EditionInputPort.cxx            
192   EditionLoop.hxx                 
193   EditionLoop.cxx                 
194   EditionNode.hxx                 
195   EditionNode.cxx                 
196   EditionOutNode.hxx              
197   EditionOutNode.cxx              
198   EditionOutputPort.hxx           
199   EditionOutputPort.cxx           
200   EditionPresetNode.hxx           
201   EditionPresetNode.cxx           
202   EditionProc.hxx                 
203   EditionProc.cxx                 
204   EditionPyFunc.hxx               
205   EditionPyFunc.cxx               
206   EditionSalomeNode.hxx           
207   EditionSalomeNode.cxx           
208   EditionScript.hxx               
209   EditionScript.cxx               
210   EditionStudyInNode.hxx          
211   EditionStudyInNode.cxx          
212   EditionStudyOutNode.hxx         
213   EditionStudyOutNode.cxx         
214   EditionSwitch.hxx               
215   EditionSwitch.cxx               
216   EditionWhile.hxx                
217   EditionWhile.cxx                
218   FormComponent.hxx               
219   FormComponent.cxx               
220   FormContainer.hxx               
221   FormContainer.cxx               
222   FormEachLoop.hxx                
223   FormEachLoop.cxx                
224   FormEditItem.hxx                
225   FormEditItem.cxx                
226   FormEditTree.hxx                
227   FormEditTree.cxx                
228   FormLoop.hxx                    
229   FormLoop.cxx                    
230   FormOptimizerLoop.hxx           
231   FormOptimizerLoop.cxx           
232   FormSchemaView.hxx              
233   FormSchemaView.cxx              
234   FormUndoRedo.hxx                
235   FormUndoRedo.cxx                
236   GenericGui.hxx                  
237   GenericGui.cxx                  
238   GraphicsView.hxx                
239   GraphicsView.cxx                
240   GuiEditor.hxx                   
241   GuiEditor.cxx                   
242   GuiExecutor.hxx                 
243   GuiExecutor.cxx                 
244   GuiObserver_i.hxx               
245   GuiObserver_i.cxx               
246   ItemEdition.hxx                 
247   ItemEdition.cxx                 
248   ItemMimeData.hxx                
249   ItemMimeData.cxx                
250   LinkAStar.hxx                   
251   LinkAStar.cxx                   
252   LinkMatrix.hxx                  
253   LinkMatrix.cxx                  
254   ListJobs_GUI.hxx                
255   ListJobs_GUI.cxx                
256   LogViewer.hxx                   
257   LogViewer.cxx                   
258   Menus.hxx                       
259   Menus.cxx                       
260   Message.hxx                     
261   Message.cxx                     
262   PropertyEditor.hxx              
263   PropertyEditor.cxx              
264   QtGuiContext.hxx                
265   QtGuiContext.cxx                
266   Resource.hxx                    
267   Resource.cxx                    
268   SceneComposedNodeItem.hxx       
269   SceneComposedNodeItem.cxx       
270   SceneCtrlInPortItem.hxx         
271   SceneCtrlInPortItem.cxx         
272   SceneCtrlLinkItem.hxx           
273   SceneCtrlLinkItem.cxx           
274   SceneCtrlOutPortItem.hxx        
275   SceneCtrlOutPortItem.cxx        
276   SceneCtrlPortItem.hxx           
277   SceneCtrlPortItem.cxx           
278   Scene.cxx                       
279   Scene.hxx                       
280   SceneBlocItem.hxx               
281   SceneBlocItem.cxx               
282   SceneDataPortItem.hxx           
283   SceneDataPortItem.cxx           
284   SceneDSLinkItem.hxx             
285   SceneDSLinkItem.cxx             
286   SceneElementaryNodeItem.hxx     
287   SceneElementaryNodeItem.cxx     
288   SceneHeaderItem.hxx             
289   SceneHeaderItem.cxx             
290   SceneHeaderNodeItem.hxx         
291   SceneHeaderNodeItem.cxx         
292   SceneInPortItem.hxx             
293   SceneInPortItem.cxx             
294   SceneItem.hxx                   
295   SceneItem.cxx                   
296   SceneLinkItem.hxx               
297   SceneLinkItem.cxx               
298   SceneNodeItem.hxx               
299   SceneNodeItem.cxx               
300   SceneObserverItem.hxx           
301   SceneObserverItem.cxx           
302   SceneOutPortItem.hxx            
303   SceneOutPortItem.cxx            
304   ScenePortItem.hxx               
305   ScenePortItem.cxx               
306   SceneProcItem.hxx               
307   SceneProcItem.cxx               
308   SceneProgressItem.hxx
309   SceneProgressItem.cxx
310   SceneTextItem.hxx               
311   SceneTextItem.cxx               
312   SchemaComponentItem.hxx         
313   SchemaComponentItem.cxx         
314   SchemaComposedNodeItem.hxx      
315   SchemaComposedNodeItem.cxx      
316   SchemaContainerItem.hxx         
317   SchemaContainerItem.cxx         
318   SchemaDataTypeItem.hxx          
319   SchemaDataTypeItem.cxx          
320   SchemaDirContainersItem.hxx     
321   SchemaDirContainersItem.cxx     
322   SchemaDirLinksItem.hxx          
323   SchemaDirLinksItem.cxx          
324   SchemaDirTypesItem.hxx          
325   SchemaDirTypesItem.cxx          
326   SchemaInPortItem.hxx            
327   SchemaInPortItem.cxx            
328   SchemaItem.hxx                  
329   SchemaItem.cxx                  
330   SchemaLinkItem.hxx              
331   SchemaLinkItem.cxx              
332   SchemaModel.hxx                 
333   SchemaModel.cxx                 
334   SchemaNodeItem.hxx              
335   SchemaNodeItem.cxx              
336   SchemaOutPortItem.hxx           
337   SchemaOutPortItem.cxx           
338   SchemaProcItem.hxx              
339   SchemaProcItem.cxx              
340   SchemaReferenceItem.hxx         
341   SchemaReferenceItem.cxx         
342   TablePortsEdition.hxx           
343   TablePortsEdition.cxx           
344   TableSwitch.hxx                 
345   TableSwitch.cxx                 
346   TreeView.hxx                    
347   TreeView.cxx                    
348   ValueDelegate.hxx               
349   ValueDelegate.cxx               
350   VisitorSaveGuiSchema.hxx        
351   VisitorSaveGuiSchema.cxx        
352   YACSWidgets.hxx                 
353   YACSWidgets.cxx                 
354   YACSGuiLoader.hxx               
355   YACSGuiLoader.cxx
356   ${_moc_SOURCES}
357   ${_uic_files}
358   )
359
360 # --- resources ---
361
362 # resource files / to be processed by lrelease
363 SET(_res_files
364   resources/add_in_study.png
365   resources/add_node.png
366   resources/addRowCols.png
367   resources/arrange_nodes.png
368   resources/autoComputeLink.png
369   resources/block_node.png
370   resources/breakpoints_active.png
371   resources/breakpoints.png
372   resources/centerOnNode.png
373   resources/shrinkExpand.png
374   resources/change_informations.png
375   resources/component.png
376   resources/connect_to_batch_session.png
377   resources/container.png
378   resources/control_link.png
379   resources/control_view.png
380   resources/copy.png
381   resources/cut.png
382   resources/dataflow_view.png
383   resources/data_link.png
384   resources/datastream_view.png
385   resources/delete.png
386   resources/emphasisLink.png
387   resources/execute_in_batch.png
388   resources/export_dataflow.png
389   resources/filter_next_steps.png
390   resources/filter_notification.png
391   resources/folder_cyan.png
392   resources/folder_cyan_open.png
393   resources/force2nodeLink.png
394   resources/full_view.png
395   resources/hideLink.png
396   resources/icon_down.png
397   resources/icon_insert.png
398   resources/icon_minus.png
399   resources/icon_plus.png
400   resources/icon_select.png
401   resources/icon_text.png
402   resources/icon_up.png
403   resources/import_dataflow.png
404   resources/import_superv_dataflow.png
405   resources/in_port.png
406   resources/insert_file.png
407   resources/kill.png
408   resources/load_execution_state.png
409   resources/loop_node.png
410   resources/mode_continue.png
411   resources/modify_dataflow.png
412   resources/modify_superv_dataflow.png
413   resources/ModuleYacs.png
414   resources/new_batch_execution.png
415   resources/new_block_node.png
416   resources/new_corba_component.png
417   resources/new_corba_service_node.png
418   resources/new_cpp_node.png
419   resources/new_dataflow.png
420   resources/new_edition.png
421   resources/new_execution.png
422   resources/new_foreach_loop_node.png
423   resources/new_for_loop_node.png
424   resources/new_from_library_node.png
425   resources/new_inline_function_node.png
426   resources/new_inline_script_node.png
427   resources/new_link.png
428   resources/new_nodenode_service_node.png
429   resources/new_salome_component.png
430   resources/new_salomepy_component.png
431   resources/new_salome_service_node.png
432   resources/new_service_inline_node.png
433   resources/new_switch_loop_node.png
434   resources/new_while_loop_node.png
435   resources/new_xml_node.png
436   resources/node.png
437   resources/ob_service_node.png
438   resources/out_port.png
439   resources/paste.png
440   resources/pause.png
441   resources/rebuild_links.png
442   resources/redo.png
443   resources/reload.png
444   resources/remote_run.png
445   resources/reset.png
446   resources/resume.png
447   resources/run_active.png
448   resources/run_object.png
449   resources/run.png
450   resources/batch.png
451   resources/sample.png
452   resources/save_dataflow.png
453   resources/save_dataflow_state.png
454   resources/schema.png
455   resources/showLink.png
456   resources/simplifyLink.png
457   resources/step_by_step_active.png
458   resources/step_by_step.png
459   resources/straightLink.png
460   resources/stream_link.png
461   resources/suspend_resume.png
462   resources/switch_node.png
463   resources/table_view.png
464   resources/toggle_stop_on_error.png
465   resources/toggleVisibility.png
466   resources/undo.png
467   resources/whatsThis.png
468   resources/zoomToBloc.png
469 )
470 # --- rules ---
471
472 ADD_LIBRARY(GenericGui ${GenericGui_SOURCES})
473 TARGET_LINK_LIBRARIES(GenericGui ${_link_LIBRARIES})
474 INSTALL(TARGETS GenericGui EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
475
476 INSTALL(FILES ${_res_files} DESTINATION ${SALOME_YACS_INSTALL_RES_DATA})