1 # Copyright (C) 2012-2022 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 # additional include directories
26 ${OpenCASCADE_INCLUDE_DIR}
29 ${PTHREAD_INCLUDE_DIR}
31 ${PROJECT_SOURCE_DIR}/src/CAM
32 ${PROJECT_SOURCE_DIR}/src/CASCatch
33 ${PROJECT_SOURCE_DIR}/src/Event
34 ${PROJECT_SOURCE_DIR}/src/LogWindow
35 ${PROJECT_SOURCE_DIR}/src/ObjBrowser
36 ${PROJECT_SOURCE_DIR}/src/Prs
37 ${PROJECT_SOURCE_DIR}/src/Qtx
38 ${PROJECT_SOURCE_DIR}/src/STD
39 ${PROJECT_SOURCE_DIR}/src/SUIT
40 ${PROJECT_SOURCE_DIR}/src/Style
42 IF(SALOME_USE_SALOMEOBJECT)
43 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/OBJECT)
45 IF(SALOME_USE_GLVIEWER)
46 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/GLViewer)
48 IF(SALOME_USE_GRAPHICSVIEW)
49 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/GraphicsView)
51 IF(SALOME_USE_PYVIEWER)
52 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/PyEditor)
53 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/PyViewer)
55 IF(SALOME_USE_OCCVIEWER)
56 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/OCCViewer)
57 IF(SALOME_USE_SALOMEOBJECT)
58 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/SOCC)
61 IF(SALOME_USE_PV3DVIEWER)
62 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/PV3DViewer)
63 IF(SALOME_USE_SALOMEOBJECT)
64 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/SPV3D)
67 IF(SALOME_USE_PLOT2DVIEWER)
68 INCLUDE_DIRECTORIES(${QWT_INCLUDE_DIR})
69 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/Plot2d)
70 IF(SALOME_USE_SALOMEOBJECT)
71 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/SPlot2d)
74 IF(SALOME_USE_VTKVIEWER)
75 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/VTKViewer)
76 IF(SALOME_USE_SALOMEOBJECT)
77 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/SVTK)
80 IF(SALOME_USE_QXGRAPHVIEWER)
81 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/QxScene)
83 IF(SALOME_USE_PVVIEWER)
84 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/PVViewer)
86 IF(SALOME_USE_PYCONSOLE)
88 ${PYTHON_INCLUDE_DIRS}
89 ${PROJECT_SOURCE_DIR}/tools/PyConsole/src
90 ${PROJECT_SOURCE_DIR}/tools/PyInterp/src
91 ${PROJECT_SOURCE_DIR}/src/SUITApp
95 # additional preprocessor / compiler flags
96 ADD_DEFINITIONS(${OpenCASCADE_DEFINITIONS} ${QT_DEFINITIONS} ${HDF5_DEFINITIONS})
97 IF(SALOME_USE_PLOT2DVIEWER)
98 ADD_DEFINITIONS(${QWT_DEFINITIONS})
100 IF(SALOME_USE_PYCONSOLE)
101 ADD_DEFINITIONS(${PYTHON_DEFINITIONS})
104 # libraries to link to
106 ${OpenCASCADE_FoundationClasses_LIBRARIES}
109 CASCatch qtx suit std SalomeStyle SalomePrs CAM LogWindow ObjBrowser Event
110 ${KERNEL_SalomeHDFPersist} ${KERNEL_SALOMELocalTrace}
111 ${GRAPHVIZ_LIBRARIES}
114 IF(SALOME_USE_SALOMEOBJECT)
115 LIST(APPEND _link_LIBRARIES SalomeObject)
117 IF(SALOME_USE_GLVIEWER)
118 LIST(APPEND _link_LIBRARIES GLViewer)
120 IF(SALOME_USE_GRAPHICSVIEW)
121 LIST(APPEND _link_LIBRARIES GraphicsView)
123 IF(SALOME_USE_PYVIEWER)
124 LIST(APPEND _link_LIBRARIES PyEditor PyViewer)
126 IF(SALOME_USE_OCCVIEWER)
127 LIST(APPEND _link_LIBRARIES OCCViewer)
128 IF(SALOME_USE_SALOMEOBJECT)
129 LIST(APPEND _link_LIBRARIES SOCC)
132 IF(SALOME_USE_PV3DVIEWER)
133 LIST(APPEND _link_LIBRARIES PV3DViewer)
134 IF(SALOME_USE_SALOMEOBJECT)
135 LIST(APPEND _link_LIBRARIES SPV3D)
138 IF(SALOME_USE_PLOT2DVIEWER)
139 LIST(APPEND _link_LIBRARIES Plot2d)
140 IF(SALOME_USE_SALOMEOBJECT)
141 LIST(APPEND _link_LIBRARIES SPlot2d)
144 IF(SALOME_USE_VTKVIEWER)
145 LIST(APPEND _link_LIBRARIES VTKViewer)
146 IF(SALOME_USE_SALOMEOBJECT)
147 LIST(APPEND _link_LIBRARIES SVTK)
150 IF(SALOME_USE_QXGRAPHVIEWER)
151 LIST(APPEND _link_LIBRARIES QxScene)
153 IF(SALOME_USE_PVVIEWER)
154 LIST(APPEND _link_LIBRARIES PVViewer)
156 IF(SALOME_USE_PYCONSOLE)
157 LIST(APPEND _link_LIBRARIES PyInterp PyConsole SUITApp)
162 # header files / to be processed by moc
165 LightApp_Application.h
169 LightApp_ModuleAction.h
172 LightApp_OBSelector.h
174 LightApp_Preferences.h
175 LightApp_PreferencesDlg.h
176 LightApp_SelectionMgr.h
177 LightApp_ShowHideOp.h
180 LightApp_WgViewModel.h
181 LightApp_ExtInfoDlg.h
183 IF(SALOME_USE_GLVIEWER)
184 LIST(APPEND _moc_HEADERS LightApp_GLSelector.h)
186 IF(SALOME_USE_GRAPHICSVIEW)
187 LIST(APPEND _moc_HEADERS LightApp_GVSelector.h)
189 IF(SALOME_USE_OCCVIEWER)
190 LIST(APPEND _moc_HEADERS LightApp_OCCSelector.h)
192 IF(SALOME_USE_PV3DVIEWER)
193 IF(SALOME_USE_SALOMEOBJECT)
194 LIST(APPEND _moc_HEADERS LightApp_PV3DSelector.h)
197 IF(SALOME_USE_PLOT2DVIEWER)
198 LIST(APPEND _moc_HEADERS LightApp_Plot2dSelector.h)
200 IF(SALOME_USE_VTKVIEWER)
201 IF(SALOME_USE_SALOMEOBJECT)
202 LIST(APPEND _moc_HEADERS LightApp_VTKSelector.h)
205 IF(SALOME_USE_PYCONSOLE)
206 LIST(APPEND _moc_HEADERS LightApp_PyEditor.h)
209 # header files / no moc processing
212 LightApp_DataObject.h
214 LightApp_DataSubOwner.h
217 LightApp_EventFilter.h
218 LightApp_FileValidator.h
219 LightApp_FullScreenHelper.h
222 LightApp_UpdateFlags.h
225 # header files / to install
226 SET(LightApp_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
230 # resource files / to be processed by rcc
231 SET(_rcc_RESOURCES LightApp.qrc)
233 # resource files / to be processed by lrelease
235 resources/LightApp_images.ts
236 resources/LightApp_msg_en.ts
237 resources/LightApp_msg_fr.ts
238 resources/LightApp_msg_ja.ts
241 # resource files / static
243 resources/icon_about.png
244 resources/icon_applogo.png
245 resources/icon_default.png
246 resources/icon_module.png
247 resources/icon_select.png
248 resources/icon_earth.png
249 resources/icon_life_ring.png
250 resources/icon_add_module.png
251 resources/icon_remove_module.png
252 resources/icon_info_module.png
253 resources/LightApp.xml
258 # sources / moc wrappings
259 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
261 # sources / rcc wrappings
262 QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
266 LightApp_AboutDlg.cxx
267 LightApp_Application.cxx
268 LightApp_DataModel.cxx
269 LightApp_DataObject.cxx
270 LightApp_DataOwner.cxx
271 LightApp_DataSubOwner.cxx
273 LightApp_Displayer.cxx
275 LightApp_EventFilter.cxx
276 LightApp_FileValidator.cxx
277 LightApp_FullScreenHelper.cxx
278 LightApp_HDFDriver.cxx
280 LightApp_ModuleAction.cxx
281 LightApp_ModuleDlg.cxx
283 LightApp_OBSelector.cxx
284 LightApp_Operation.cxx
285 LightApp_Preferences.cxx
286 LightApp_PreferencesDlg.cxx
287 LightApp_Selection.cxx
288 LightApp_SelectionMgr.cxx
289 LightApp_ShowHideOp.cxx
291 LightApp_SwitchOp.cxx
292 LightApp_WgViewModel.cxx
293 LightApp_ExtInfoDlg.cxx
295 IF(SALOME_USE_GLVIEWER)
296 LIST(APPEND _other_SOURCES LightApp_GLSelector.cxx)
298 IF(SALOME_USE_GRAPHICSVIEW)
299 LIST(APPEND _other_SOURCES LightApp_GVSelector.cxx)
301 IF(SALOME_USE_OCCVIEWER)
302 LIST(APPEND _other_SOURCES LightApp_OCCSelector.cxx)
304 IF(SALOME_USE_PV3DVIEWER)
305 IF(SALOME_USE_SALOMEOBJECT)
306 LIST(APPEND _other_SOURCES LightApp_PV3DSelector.cxx)
309 IF(SALOME_USE_PLOT2DVIEWER)
310 LIST(APPEND _other_SOURCES LightApp_Plot2dSelector.cxx)
312 IF(SALOME_USE_VTKVIEWER)
313 IF(SALOME_USE_SALOMEOBJECT)
314 LIST(APPEND _other_SOURCES LightApp_VTKSelector.cxx)
317 IF(SALOME_USE_PYCONSOLE)
318 LIST(APPEND _other_SOURCES LightApp_PyEditor.cxx)
321 # sources / to compile
322 SET(LightApp_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_rcc_SOURCES})
326 ADD_LIBRARY(LightApp ${LightApp_SOURCES})
327 TARGET_LINK_LIBRARIES(LightApp ${_link_LIBRARIES})
328 INSTALL(TARGETS LightApp EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
330 INSTALL(FILES ${LightApp_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
331 QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
333 INSTALL(FILES ${_other_RESOURCES} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})