1 # Copyright (C) 2012-2014 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
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_OCCVIEWER)
52 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/OCCViewer)
53 IF(SALOME_USE_SALOMEOBJECT)
54 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/SOCC)
57 IF(SALOME_USE_PLOT2DVIEWER)
58 INCLUDE_DIRECTORIES(${QWT_INCLUDE_DIR})
59 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/Plot2d)
60 IF(SALOME_USE_SALOMEOBJECT)
61 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/SPlot2d)
64 IF(SALOME_USE_VTKVIEWER)
65 INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})
66 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/VTKViewer)
67 IF(SALOME_USE_SALOMEOBJECT)
68 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/SVTK)
71 IF(SALOME_USE_QXGRAPHVIEWER)
72 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/QxScene)
74 IF(SALOME_USE_PYCONSOLE)
76 ${PYTHON_INCLUDE_DIRS}
77 ${PROJECT_SOURCE_DIR}/src/PyConsole
78 ${PROJECT_SOURCE_DIR}/src/PyInterp
79 ${PROJECT_SOURCE_DIR}/src/SUITApp
83 # additional preprocessor / compiler flags
84 ADD_DEFINITIONS(${CAS_DEFINITIONS} ${QT_DEFINITIONS} ${HDF5_DEFINITIONS})
85 IF(SALOME_USE_PLOT2DVIEWER)
86 ADD_DEFINITIONS(${QWT_DEFINITIONS})
88 IF(SALOME_USE_PYCONSOLE)
89 ADD_DEFINITIONS(${PYTHON_DEFINITIONS})
92 # libraries to link to
97 CASCatch qtx suit std SalomeStyle SalomePrs CAM LogWindow ObjBrowser
98 ${KERNEL_SalomeHDFPersist} ${KERNEL_SALOMELocalTrace}
100 IF(SALOME_USE_SALOMEOBJECT)
101 LIST(APPEND _link_LIBRARIES SalomeObject)
103 IF(SALOME_USE_GLVIEWER)
104 LIST(APPEND _link_LIBRARIES GLViewer)
106 IF(SALOME_USE_GRAPHICSVIEW)
107 LIST(APPEND _link_LIBRARIES GraphicsView)
109 IF(SALOME_USE_OCCVIEWER)
110 LIST(APPEND _link_LIBRARIES OCCViewer)
111 IF(SALOME_USE_SALOMEOBJECT)
112 LIST(APPEND _link_LIBRARIES SOCC)
115 IF(SALOME_USE_PLOT2DVIEWER)
116 LIST(APPEND _link_LIBRARIES Plot2d)
117 IF(SALOME_USE_SALOMEOBJECT)
118 LIST(APPEND _link_LIBRARIES SPlot2d)
121 IF(SALOME_USE_VTKVIEWER)
122 LIST(APPEND _link_LIBRARIES VTKViewer)
123 IF(SALOME_USE_SALOMEOBJECT)
124 LIST(APPEND _link_LIBRARIES SVTK)
127 IF(SALOME_USE_QXGRAPHVIEWER)
128 LIST(APPEND _link_LIBRARIES QxScene)
130 IF(SALOME_USE_PYCONSOLE)
131 LIST(APPEND _link_LIBRARIES PyInterp PyConsole SUITApp)
136 # header files / to be processed by moc
139 LightApp_Application.h
143 LightApp_ModuleAction.h
146 LightApp_OBSelector.h
148 LightApp_Preferences.h
149 LightApp_PreferencesDlg.h
150 LightApp_SelectionMgr.h
151 LightApp_ShowHideOp.h
154 LightApp_WgViewModel.h
156 IF(SALOME_USE_GLVIEWER)
157 LIST(APPEND _moc_HEADERS LightApp_GLSelector.h)
159 IF(SALOME_USE_GRAPHICSVIEW)
160 LIST(APPEND _moc_HEADERS LightApp_GVSelector.h)
162 IF(SALOME_USE_OCCVIEWER)
163 LIST(APPEND _moc_HEADERS LightApp_OCCSelector.h)
165 IF(SALOME_USE_PLOT2DVIEWER)
166 LIST(APPEND _moc_HEADERS LightApp_Plot2dSelector.h)
168 IF(SALOME_USE_VTKVIEWER)
169 IF(SALOME_USE_SALOMEOBJECT)
170 LIST(APPEND _moc_HEADERS LightApp_VTKSelector.h)
174 # header files / no moc processing
177 LightApp_DataObject.h
179 LightApp_DataSubOwner.h
182 LightApp_EventFilter.h
183 LightApp_FullScreenHelper.h
186 LightApp_UpdateFlags.h
188 IF(SALOME_USE_PYCONSOLE)
189 LIST(APPEND _other_HEADERS LightApp_PyInterp.h)
192 # header files / to install
193 SET(LightApp_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
197 # resource files / to be processed by rcc
198 SET(_rcc_RESOURCES LightApp.qrc)
200 # resource files / to be processed by lrelease
202 resources/LightApp_images.ts
203 resources/LightApp_msg_en.ts
204 resources/LightApp_msg_fr.ts
205 resources/LightApp_msg_ja.ts
208 # resource files / static
210 resources/icon_about.png
211 resources/icon_applogo.png
212 resources/icon_default.png
213 resources/icon_module.png
214 resources/icon_module_big.png
215 resources/icon_select.png
216 resources/LightApp.ini
217 resources/LightApp.xml
222 # sources / rcc wrappings
223 QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
225 # sources / moc wrappings
226 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
230 LightApp_AboutDlg.cxx
231 LightApp_Application.cxx
232 LightApp_DataModel.cxx
233 LightApp_DataObject.cxx
234 LightApp_DataOwner.cxx
235 LightApp_DataSubOwner.cxx
237 LightApp_Displayer.cxx
239 LightApp_EventFilter.cxx
240 LightApp_FullScreenHelper.cxx
241 LightApp_HDFDriver.cxx
243 LightApp_ModuleAction.cxx
244 LightApp_ModuleDlg.cxx
246 LightApp_OBSelector.cxx
247 LightApp_Operation.cxx
248 LightApp_Preferences.cxx
249 LightApp_PreferencesDlg.cxx
250 LightApp_Selection.cxx
251 LightApp_SelectionMgr.cxx
252 LightApp_ShowHideOp.cxx
254 LightApp_SwitchOp.cxx
255 LightApp_WgViewModel.cxx
257 IF(SALOME_USE_GLVIEWER)
258 LIST(APPEND _other_SOURCES LightApp_GLSelector.cxx)
260 IF(SALOME_USE_GRAPHICSVIEW)
261 LIST(APPEND _other_SOURCES LightApp_GVSelector.cxx)
263 IF(SALOME_USE_OCCVIEWER)
264 LIST(APPEND _other_SOURCES LightApp_OCCSelector.cxx)
266 IF(SALOME_USE_PLOT2DVIEWER)
267 LIST(APPEND _other_SOURCES LightApp_Plot2dSelector.cxx)
269 IF(SALOME_USE_VTKVIEWER)
270 IF(SALOME_USE_SALOMEOBJECT)
271 LIST(APPEND _other_SOURCES LightApp_VTKSelector.cxx)
274 IF(SALOME_USE_PYCONSOLE)
275 LIST(APPEND _other_SOURCES LightApp_PyInterp.cxx)
278 # sources / to compile
279 SET(LightApp_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_rcc_SOURCES})
283 ADD_LIBRARY(LightApp ${LightApp_SOURCES})
284 TARGET_LINK_LIBRARIES(LightApp ${_link_LIBRARIES})
285 INSTALL(TARGETS LightApp EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
287 INSTALL(FILES ${LightApp_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
288 QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
290 INSTALL(FILES ${_other_RESOURCES} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})