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
21 INCLUDE(${VTK_USE_FILE})
25 # additional include directories
29 ${PTHREAD_INCLUDE_DIR}
30 ${PROJECT_SOURCE_DIR}/src/Qtx
31 ${PROJECT_SOURCE_DIR}/src/SUIT
34 # additional preprocessor / compiler flags
35 ADD_DEFINITIONS(${CAS_DEFINITIONS} ${QT_DEFINITIONS})
37 # libraries to link to
38 SET(_link_LIBRARIES ${QT_LIBRARIES} ${OPENGL_LIBRARIES} ${VTK_LIBRARIES} ${CAS_KERNEL} qtx suit ${KERNEL_SALOMELocalTrace})
42 # header files / to be processed by moc
45 VTKViewer_MarkerWidget.h
46 VTKViewer_RenderWindow.h
47 VTKViewer_RenderWindowInteractor.h
48 VTKViewer_ViewManager.h
50 VTKViewer_ViewWindow.h
53 # header files / no moc processing
57 VTKViewer_AppendFilter.h
59 VTKViewer_ArcBuilder.h
60 VTKViewer_CellCenters.h
61 VTKViewer_CellLocationsArray.h
62 VTKViewer_ConvexTool.h
63 VTKViewer_DataSetMapper.h
64 VTKViewer_ExtractUnstructuredGrid.h
66 VTKViewer_FramedTextActor.h
68 VTKViewer_GeometryFilter.h
69 VTKViewer_InteractorStyle.h
71 VTKViewer_MarkerUtils.h
72 VTKViewer_OpenGLRenderer.h
73 VTKViewer_PolyDataMapper.h
74 VTKViewer_ShrinkFilter.h
77 VTKViewer_TransformFilter.h
82 # header files / to install
83 SET(VTKViewer_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
87 # resource files / to be processed by rcc
88 SET(_rcc_RESOURCES VTKViewer.qrc)
90 # resource files / to be processed by lrelease
92 resources/VTKViewer_images.ts
93 resources/VTKViewer_msg_en.ts
94 resources/VTKViewer_msg_fr.ts
95 resources/VTKViewer_msg_ja.ts
98 # resource files / static
100 resources/vtk_view_anticlockwise.png
101 resources/vtk_view_clockwise.png
102 resources/vtk_view_back.png
103 resources/vtk_view_bottom.png
104 resources/vtk_view_camera_dump.png
105 resources/vtk_view_fitall.png
106 resources/vtk_view_fitarea.png
107 resources/vtk_view_fitselection.png
108 resources/vtk_view_front.png
109 resources/vtk_view_glpan.png
110 resources/vtk_view_left.png
111 resources/vtk_view_pan.png
112 resources/vtk_view_reset.png
113 resources/vtk_view_right.png
114 resources/vtk_view_rotate.png
115 resources/vtk_view_top.png
116 resources/vtk_view_triedre.png
117 resources/vtk_view_zoom.png
118 resources/marker_1.png
119 resources/marker_2.png
120 resources/marker_3.png
121 resources/marker_4.png
122 resources/marker_5.png
123 resources/marker_6.png
124 resources/marker_7.png
125 resources/marker_8.png
126 resources/marker_9.png
131 # sources / rcc wrappings
132 QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
134 # sources / moc wrappings
135 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
140 VTKViewer_Algorithm.cxx
141 VTKViewer_AppendFilter.cxx
142 VTKViewer_ArcBuilder.cxx
143 VTKViewer_CellCenters.cxx
144 VTKViewer_CellLocationsArray.cxx
145 VTKViewer_ConvexTool.cxx
146 VTKViewer_DataSetMapper.cxx
147 VTKViewer_ExtractUnstructuredGrid.cxx
149 VTKViewer_FramedTextActor.cxx
150 VTKViewer_GeometryFilter.cxx
151 VTKViewer_InteractorStyle.cxx
152 VTKViewer_MarkerDlg.cxx
153 VTKViewer_MarkerUtils.cxx
154 VTKViewer_MarkerWidget.cxx
155 VTKViewer_OpenGLRenderer.cxx
156 VTKViewer_PolyDataMapper.cxx
157 VTKViewer_RenderWindow.cxx
158 VTKViewer_RenderWindowInteractor.cxx
159 VTKViewer_ShrinkFilter.cxx
160 VTKViewer_Texture.cxx
161 VTKViewer_Transform.cxx
162 VTKViewer_TransformFilter.cxx
163 VTKViewer_Trihedron.cxx
164 VTKViewer_Utilities.cxx
165 VTKViewer_ViewManager.cxx
166 VTKViewer_ViewModel.cxx
167 VTKViewer_ViewWindow.cxx
170 # sources / to compile
171 SET(VTKViewer_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_rcc_SOURCES})
175 ADD_LIBRARY(VTKViewer ${VTKViewer_SOURCES})
176 TARGET_LINK_LIBRARIES(VTKViewer ${_link_LIBRARIES})
177 INSTALL(TARGETS VTKViewer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
179 INSTALL(FILES ${VTKViewer_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
180 QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
182 INSTALL(FILES ${_other_RESOURCES} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})
183 FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
184 INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})
186 FILE(GLOB GUIVTI_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.vti")
187 INSTALL(FILES ${GUIVTI_DATA} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})
189 FILE(GLOB GUITXT_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.txt")
190 INSTALL(FILES ${GUITXT_DATA} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})