1 # Copyright (C) 2012-2013 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.
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
30 ${KERNEL_INCLUDE_DIRS}
31 ${PROJECT_SOURCE_DIR}/src/Qtx
32 ${PROJECT_SOURCE_DIR}/src/SUIT
33 ${PROJECT_SOURCE_DIR}/src/ViewerTools
34 ${PROJECT_SOURCE_DIR}/src/OBJECT
35 ${PROJECT_SOURCE_DIR}/src/Prs
36 ${PROJECT_SOURCE_DIR}/src/VTKViewer
37 ${PROJECT_SOURCE_DIR}/src/OpenGLUtils
40 # additional preprocessor / compiler flags
41 ADD_DEFINITIONS(${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${BOOST_DEFINITIONS})
43 # libraries to link to
48 ${CAS_KERNEL} ${CAS_VIEWER}
49 qtx suit ViewerTools SalomeObject SalomePrs VTKViewer OpenGLUtils
54 # header files / to be processed by moc
58 SVTK_GenericRenderWindowInteractor.h
60 SVTK_RenderWindowInteractor.h
61 SVTK_SetRotationPointDlg.h
66 SVTK_ViewParameterDlg.h
70 # header files / to be processed by moc / internal
71 # TODO: check for MSVS project
72 SET(_moc_internal_HEADERS
74 SVTK_NonIsometricDlg.h
78 # header files / no moc processing
84 SVTK_CubeAxesActor2D.h
90 SVTK_InteractorStyle.h
91 SVTK_KeyFreeInteractorStyle.h
102 # header files / no moc processing / internal
103 # no processing currently: TODO: check for MSVS project
104 SET(_internal_HEADERS
111 # header files / to install
112 SET(SVTK_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
116 # resource files / to be processed by lrelease
118 resources/SVTK_msg_en.ts
119 resources/SVTK_msg_fr.ts
120 resources/SVTK_msg_ja.ts
121 resources/SVTK_images.ts
124 # resource files / static
126 resources/vtk_view_graduated_axes.png
127 resources/vtk_view_highlight.png
128 resources/vtk_view_highlight_dyn.png
129 resources/vtk_view_highlight_off.png
130 resources/vtk_view_highlight_std.png
131 resources/vtk_view_parallel.png
132 resources/vtk_view_parameters.png
133 resources/vtk_view_perspective.png
134 resources/vtk_view_recording_pause.png
135 resources/vtk_view_recording_play.png
136 resources/vtk_view_recording_start.png
137 resources/vtk_view_recording_stop.png
138 resources/vtk_view_rotation_point.png
139 resources/vtk_view_scaling.png
140 resources/vtk_view_selection.png
141 resources/vtk_view_style_switch.png
142 resources/vtk_view_update_rate.png
143 resources/vtk_view_zooming_style_switch.png
148 # sources / moc wrappings
149 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS} ${_moc_internal_HEADERS})
157 SVTK_CubeAxesActor2D.cxx
161 SVTK_GenericRenderWindowInteractor.cxx
163 SVTK_ImageWriterMgr.cxx
164 SVTK_InteractorStyle.cxx
165 SVTK_KeyFreeInteractorStyle.cxx
166 SVTK_NonIsometricDlg.cxx
170 SVTK_RenderWindowInteractor.cxx
173 SVTK_SetRotationPointDlg.cxx
176 SVTK_UpdateRateDlg.cxx
181 SVTK_ViewParameterDlg.cxx
187 # sources / to compile
188 SET(SVTK_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
192 ADD_LIBRARY(SVTK ${SVTK_SOURCES})
193 TARGET_LINK_LIBRARIES(SVTK ${_link_LIBRARIES})
194 INSTALL(TARGETS SVTK EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
196 INSTALL(FILES ${SVTK_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
197 QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
199 INSTALL(FILES ${_other_RESOURCES} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})