1 # Copyright (C) 2012 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
19 INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
25 ${PTHREAD_INCLUDE_DIRS}
26 ${KERNEL_ROOT_DIR}/include/salome
27 ${CMAKE_CURRENT_SOURCE_DIR}/../Qtx
28 ${CMAKE_CURRENT_SOURCE_DIR}/../SUIT
31 SET(COMMON_FLAGS "${VTK_DEFINITIONS} ${CAS_DEFINITIONS} ${QT_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
32 SET(COMMON_LIBS ${QT_MT_LIBS} ${OGL_LIBS} ${VTK_LIBS} ${CAS_KERNEL} qtx suit ${SALOMELocalTrace})
35 VTKViewer_RenderWindow.h
36 VTKViewer_RenderWindowInteractor.h
37 VTKViewer_ViewManager.h
39 VTKViewer_ViewWindow.h
40 VTKViewer_MarkerWidget.h
43 QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
45 SET(RCCS VTKViewer.qrc)
46 QT4_ADD_RESOURCES(RCC_SRCS ${RCCS})
49 VTKViewer_CellLocationsArray.cxx
51 VTKViewer_FramedTextActor.cxx
52 VTKViewer_ExtractUnstructuredGrid.cxx
54 VTKViewer_GeometryFilter.cxx
55 VTKViewer_AppendFilter.cxx
56 VTKViewer_Algorithm.cxx
57 VTKViewer_InteractorStyle.cxx
58 VTKViewer_RenderWindow.cxx
59 VTKViewer_RenderWindowInteractor.cxx
60 VTKViewer_ShrinkFilter.cxx
61 VTKViewer_Transform.cxx
62 VTKViewer_TransformFilter.cxx
63 VTKViewer_Trihedron.cxx
64 VTKViewer_Utilities.cxx
65 VTKViewer_ViewManager.cxx
66 VTKViewer_ViewModel.cxx
67 VTKViewer_ConvexTool.cxx
68 VTKViewer_ViewWindow.cxx
69 VTKViewer_ArcBuilder.cxx
70 VTKViewer_MarkerUtils.cxx
71 VTKViewer_MarkerWidget.cxx
72 VTKViewer_MarkerDlg.cxx
73 VTKViewer_PolyDataMapper.cxx
74 VTKViewer_DataSetMapper.cxx
76 VTKViewer_OpenGLRenderer.cxx
77 VTKViewer_CellCenters.cxx
81 resources/VTKViewer_images.ts
82 resources/VTKViewer_msg_en.ts
83 resources/VTKViewer_msg_fr.ts
86 ADD_LIBRARY(VTKViewer SHARED ${VTKViewer_SOURCES} ${GUI_HEADERS_MOC} ${RCC_SRCS})
87 SET_TARGET_PROPERTIES(VTKViewer PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
88 TARGET_LINK_LIBRARIES(VTKViewer ${COMMON_LIBS})
89 INSTALL(TARGETS VTKViewer DESTINATION ${GUI_salomelib_LIBS})
91 #ADD_EXECUTABLE(TestVTKViewer VTKViewer.cxx)
92 #SET_TARGET_PROPERTIES(TestVTKViewer PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}" OUTPUT_NAME "VTKViewer")
93 #TARGET_LINK_LIBRARIES(TestVTKViewer VTKViewer ${COMMON_LIBS})
94 #INSTALL(TARGETS TestVTKViewer DESTINATION ${GUI_salomebin_BINS})
98 VTKViewer_CellLocationsArray.h
100 VTKViewer_FramedTextActor.h
101 VTKViewer_ExtractUnstructuredGrid.h
102 VTKViewer_ConvexTool.h
104 VTKViewer_GeometryFilter.h
105 VTKViewer_AppendFilter.h
106 VTKViewer_Algorithm.h
107 VTKViewer_InteractorStyle.h
108 VTKViewer_RenderWindow.h
109 VTKViewer_RenderWindowInteractor.h
110 VTKViewer_ShrinkFilter.h
111 VTKViewer_TransformFilter.h
112 VTKViewer_Transform.h
113 VTKViewer_Trihedron.h
114 VTKViewer_Utilities.h
115 VTKViewer_ViewManager.h
116 VTKViewer_ViewModel.h
117 VTKViewer_ViewWindow.h
119 VTKViewer_ArcBuilder.h
120 VTKViewer_MarkerDef.h
121 VTKViewer_MarkerUtils.h
122 VTKViewer_MarkerWidget.h
123 VTKViewer_MarkerDlg.h
124 VTKViewer_PolyDataMapper.h
125 VTKViewer_DataSetMapper.h
127 VTKViewer_OpenGLRenderer.h
128 VTKViewer_CellCenters.h
131 INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
132 QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")
134 FILE(GLOB GUIPNG_DATA "${CMAKE_CURRENT_SOURCE_DIR}/resources/*.png")
135 INSTALL(FILES ${GUIPNG_DATA} DESTINATION ${GUI_salomeres_DATA})