1 # Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License, or (at your option) any later version.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
27 # additional include directories
32 ${PTHREAD_INCLUDE_DIR}
33 ${PROJECT_SOURCE_DIR}/src/CASCatch
34 ${PROJECT_SOURCE_DIR}/src/Qtx
35 ${PROJECT_SOURCE_DIR}/src/SUIT
36 ${PROJECT_SOURCE_DIR}/src/ViewerData
37 ${PROJECT_SOURCE_DIR}/src/ViewerTools
38 ${PROJECT_SOURCE_DIR}/src/OpenGLUtils
41 # additional preprocessor / compiler flags
42 ADD_DEFINITIONS(${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${OGL_DEFINITIONS})
44 # libraries to link to
46 ${OPENGL_LIBRARIES} ${QT_LIBRARIES} ${CAS_KERNEL} ${CAS_VIEWER} ${CAS_TKGeomAlgo}
47 ${CAS_TKTopAlgo} ${CAS_TKG2d} ${CAS_TKOpenGl}
48 CASCatch qtx suit ViewerTools ViewerData OpenGLUtils
53 # header files / to be processed by moc
55 OCCViewer_AISSelector.h
56 OCCViewer_AxialScaleDlg.h
57 OCCViewer_ClippingDlg.h
58 OCCViewer_CreateRestoreViewDlg.h
59 OCCViewer_CubeAxesDlg.h
60 OCCViewer_FontWidget.h
61 OCCViewer_SetRotationPointDlg.h
64 OCCViewer_ViewManager.h
67 OCCViewer_ViewPort3d.h
68 OCCViewer_ViewSketcher.h
69 OCCViewer_ViewWindow.h
70 OCCViewer_ViewportInputFilter.h
71 OCCViewer_ClipPlaneInteractor.h
74 # header files / no moc processing
83 # header files / no moc processing / internal
84 # no processing currently: TODO: check for MSVS project
89 # header files / to install
90 SET(OCCViewer_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
94 # resource files / to be processed by rcc
95 SET(_rcc_RESOURCES OCCViewer.qrc)
97 # resource files / to be processed by lrelease
99 resources/OCCViewer_images.ts
100 resources/OCCViewer_msg_en.ts
101 resources/OCCViewer_msg_fr.ts
102 resources/OCCViewer_msg_ja.ts
105 # resource files / static
107 resources/occ_view_ambient.png
108 resources/occ_view_anticlockwise.png
109 resources/occ_view_back.png
110 resources/occ_view_bottom.png
111 resources/occ_view_camera_dump.png
112 resources/occ_view_clipping.png
113 resources/occ_view_clipping_pressed.png
114 resources/occ_view_clockwise.png
115 resources/occ_view_clone.png
116 resources/occ_view_fitall.png
117 resources/occ_view_fitarea.png
118 resources/occ_view_fitselection.png
119 resources/occ_view_front.png
120 resources/occ_view_glpan.png
121 resources/occ_view_graduated_axes.png
122 resources/occ_view_left.png
123 resources/occ_view_maximized.png
124 resources/occ_view_minimized.png
125 resources/occ_view_orthographic.png
126 resources/occ_view_pan.png
127 resources/occ_view_perspective.png
128 resources/occ_view_preselection.png
129 resources/occ_view_presets.png
130 resources/occ_view_reset.png
131 resources/occ_view_return_3d_view.png
132 resources/occ_view_right.png
133 resources/occ_view_rotate.png
134 resources/occ_view_rotation_point.png
135 resources/occ_view_scaling.png
136 resources/occ_view_selection.png
137 resources/occ_view_shoot.png
138 resources/occ_view_style_switch.png
139 resources/occ_view_top.png
140 resources/occ_view_triedre.png
141 resources/occ_view_zoom.png
142 resources/occ_view_zooming_style_switch.png
147 # sources / moc wrappings
148 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
150 # sources / rcc wrappings
151 QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
155 OCCViewer_AISSelector.cxx
156 OCCViewer_AxialScaleDlg.cxx
157 OCCViewer_ClippingDlg.cxx
158 OCCViewer_ClipPlane.cxx
159 OCCViewer_CreateRestoreViewDlg.cxx
160 OCCViewer_CubeAxesDlg.cxx
161 OCCViewer_FontWidget.cxx
162 OCCViewer_SetRotationPointDlg.cxx
163 OCCViewer_ToolTip.cxx
164 OCCViewer_Trihedron.cxx
165 OCCViewer_VService.cxx
166 OCCViewer_ViewFrame.cxx
167 OCCViewer_ViewManager.cxx
168 OCCViewer_ViewModel.cxx
169 OCCViewer_ViewPort.cxx
170 OCCViewer_ViewPort3d.cxx
171 OCCViewer_ViewSketcher.cxx
172 OCCViewer_ViewWindow.cxx
173 OCCViewer_ViewportInputFilter.cxx
174 OCCViewer_ClipPlaneInteractor.cxx
175 OCCViewer_Utilities.cxx
178 # sources / to compile
179 SET(OCCViewer_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_rcc_SOURCES})
183 ADD_LIBRARY(OCCViewer ${OCCViewer_SOURCES})
184 TARGET_LINK_LIBRARIES(OCCViewer ${_link_LIBRARIES})
185 INSTALL(TARGETS OCCViewer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
187 INSTALL(FILES ${OCCViewer_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
188 QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
190 INSTALL(FILES ${_other_RESOURCES} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})