1 # Copyright (C) 2012-2015 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
20 ADD_SUBDIRECTORY(pluginsdemo)
21 IF(SALOME_BUILD_TESTS)
22 ADD_SUBDIRECTORY(Test)
26 IF(SALOME_USE_VTKVIEWER)
27 INCLUDE(${VTK_USE_FILE})
32 # additional include directories
38 ${PTHREAD_INCLUDE_DIR}
39 ${OMNIORB_INCLUDE_DIR}
40 ${PROJECT_BINARY_DIR}/idl
41 ${PROJECT_SOURCE_DIR}/src/CAM
42 ${PROJECT_SOURCE_DIR}/src/CASCatch
43 ${PROJECT_SOURCE_DIR}/src/Event
44 ${PROJECT_SOURCE_DIR}/src/LightApp
45 ${PROJECT_SOURCE_DIR}/src/OBJECT
46 ${PROJECT_SOURCE_DIR}/src/ObjBrowser
47 ${PROJECT_SOURCE_DIR}/src/Prs
48 ${PROJECT_SOURCE_DIR}/src/Qtx
49 ${PROJECT_SOURCE_DIR}/src/STD
50 ${PROJECT_SOURCE_DIR}/src/SUIT
51 ${PROJECT_SOURCE_DIR}/src/SVTK
52 ${PROJECT_SOURCE_DIR}/src/TOOLSGUI
53 ${PROJECT_SOURCE_DIR}/src/VTKViewer
56 IF(SALOME_USE_PYCONSOLE)
58 ${PYTHON_INCLUDE_DIRS}
59 ${PROJECT_SOURCE_DIR}/src/SalomePyConsole
60 ${PROJECT_SOURCE_DIR}/src/PyConsole
61 ${PROJECT_SOURCE_DIR}/src/PyInterp
65 # additional preprocessor / compiler flags
68 ${OMNIORB_DEFINITIONS}
74 IF(SALOME_USE_PYCONSOLE)
75 ADD_DEFINITIONS(${PYTHON_DEFINITIONS})
78 # libraries to link to
83 ${KERNEL_OpUtil} ${KERNEL_SALOMELocalTrace} ${KERNEL_SalomeDSClient} ${KERNEL_TOOLSDS}
84 CASCatch suit std CAM ObjBrowser SalomePrs Event
85 LogWindow LightApp SalomePrs ToolsGUI
88 IF(SALOME_USE_VTKVIEWER)
89 LIST(APPEND _link_LIBRARIES VTKViewer SVTK)
92 IF(SALOME_USE_PYCONSOLE)
93 LIST(APPEND _link_LIBRARIES PyInterp SalomePyConsole)
96 IF(SALOME_USE_GLVIEWER)
97 LIST(APPEND _link_LIBRARIES GLViewer)
100 IF(SALOME_USE_PLOT2DVIEWER)
101 LIST(APPEND _link_LIBRARIES Plot2d)
102 IF(SALOME_USE_SALOMEOBJECT)
103 LIST(APPEND _link_LIBRARIES SPlot2d)
104 ENDIF(SALOME_USE_SALOMEOBJECT)
105 ENDIF(SALOME_USE_PLOT2DVIEWER)
107 IF(SALOME_USE_OCCVIEWER)
108 LIST(APPEND _link_LIBRARIES OCCViewer)
109 IF(SALOME_USE_SALOMEOBJECT)
110 LIST(APPEND _link_LIBRARIES SOCC)
111 ENDIF(SALOME_USE_SALOMEOBJECT)
114 IF(SALOME_USE_PVVIEWER)
115 LIST(APPEND _link_LIBRARIES PVViewer)
118 IF(SALOME_USE_SALOMEOBJECT)
119 LIST(APPEND _link_LIBRARIES SalomeObject)
122 IF(NOT SALOME_LIGHT_ONLY)
123 LIST(APPEND _link_LIBRARIES SalomeIDLGUI)
124 LIST(APPEND _link_LIBRARIES ${KERNEL_SalomeContainer})
125 LIST(APPEND _link_LIBRARIES ${KERNEL_SalomeLifeCycleCORBA})
130 # header files / to be processed by moc
132 SalomeApp_Application.h
133 SalomeApp_CheckFileDlg.h
134 SalomeApp_DataModel.h
135 SalomeApp_DoubleSpinBox.h
137 SalomeApp_IntSpinBox.h
139 SalomeApp_LoadStudiesDlg.h
142 SalomeApp_StudyPropertiesDlg.h
145 IF(SALOME_USE_PYCONSOLE)
146 LIST(APPEND _moc_HEADERS SalomeApp_NoteBook.h)
149 # header files / no moc processing
152 SalomeApp_DataObject.h
154 SalomeApp_ExceptionHandler.h
156 SalomeApp_ImportOperation.h
158 SalomeApp_TypeFilter.h
159 SalomeApp_VisualState.h
162 IF(SALOME_USE_PYCONSOLE)
163 LIST(APPEND _other_HEADERS SalomeApp_PyInterp.h)
166 # header files / to install
167 SET(SalomeApp_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
171 # resource files / to be processed by lrelease
173 resources/SalomeApp_images.ts
174 resources/SalomeApp_msg_en.ts
175 resources/SalomeApp_msg_fr.ts
176 resources/SalomeApp_msg_ja.ts
179 # resource files / static
181 resources/SalomeApp.ini
182 resources/SalomeApp.xml
187 # sources / moc wrappings
188 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
192 SalomeApp_Application.cxx
193 SalomeApp_CheckFileDlg.cxx
194 SalomeApp_DataModel.cxx
195 SalomeApp_DataObject.cxx
196 SalomeApp_DoubleSpinBox.cxx
197 SalomeApp_Engine_i.cxx
198 SalomeApp_ExceptionHandler.cxx
199 SalomeApp_ExitDlg.cxx
201 SalomeApp_ImportOperation.cxx
202 SalomeApp_IntSpinBox.cxx
203 SalomeApp_ListView.cxx
204 SalomeApp_LoadStudiesDlg.cxx
207 SalomeApp_StudyPropertiesDlg.cxx
209 SalomeApp_TypeFilter.cxx
210 SalomeApp_VisualState.cxx
213 IF(SALOME_USE_PYCONSOLE)
214 LIST(APPEND _other_SOURCES SalomeApp_PyInterp.cxx SalomeApp_NoteBook.cxx)
217 # sources / to compile
218 SET(SalomeApp_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
229 salome_pluginsmanager.py
234 ADD_LIBRARY(SalomeApp ${SalomeApp_SOURCES})
235 TARGET_LINK_LIBRARIES(SalomeApp ${_link_LIBRARIES})
236 INSTALL(TARGETS SalomeApp EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
238 INSTALL(FILES ${SalomeApp_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
239 QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
241 INSTALL(FILES ${_other_RESOURCES} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})
243 SALOME_INSTALL_SCRIPTS("${_py_SCRIPTS}" ${SALOME_INSTALL_PYTHON})
244 SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_SCRIPT_PYTHON})