1 # Copyright (C) 2010-2016 CEA/DEN, EDF R&D
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
25 ${KERNEL_INCLUDE_DIRS}
30 ${CMAKE_CURRENT_SOURCE_DIR}
31 ${CMAKE_CURRENT_BINARY_DIR}
34 # additional preprocessor / compiler flags
35 ADD_DEFINITIONS(${KERNEL_DEFINITIONS})
37 # libraries to link to
38 SET(_PARAVIEW_APP_COMPO_LIB
39 pqApplicationComponents
46 ${GUI_LDFLAGS} ${GUI_LightApp} ${GUI_CAM} ${GUI_qtx} ${GUI_suit}
48 ${_PARAVIEW_APP_COMPO_LIB}
55 resources/pqCustomSettingsWidget.ui
58 QT_WRAP_UIC(_ui_FORMS_HEADERS ${_ui_files})
60 # header files / to be processed by moc
64 PVGUI_ParaViewSettingsPane.h
67 # header files / to install
68 SET(PVGUI_HEADERS ${_moc_HEADERS} ${_ui_FORMS_HEADERS})
72 # resource files / to be processed by lrelease
74 resources/PARAVIS_images.ts
75 resources/PARAVIS_msg_en.ts
76 resources/PARAVIS_msg_fr.ts
77 resources/PARAVIS_msg_ja.ts
80 # resource files / static
82 # sampleservers.pvsc ???
86 # --- ParaView documentation is built as a resource ---
87 # Check ParaView documentation file existence
88 # if it exists add it to the resources (compile into binary form)
89 # otherwise print warning message
90 SET(PV_DOC_FILE ${VTK_INSTALL_PREFIX}/share/doc/paraview-${PARAVIEW_VERSION_MAJOR}.${PARAVIEW_VERSION_MINOR}/paraview.qch)
91 IF (EXISTS ${PV_DOC_FILE})
92 SET(RC_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/PVGUI.qrc.in)
93 SET(RC_GENERATED ${CMAKE_CURRENT_BINARY_DIR}/PVGUI.qrc)
94 MESSAGE(STATUS "Creation of ${RC_GENERATED}")
95 CONFIGURE_FILE(${RC_SOURCE} ${RC_GENERATED})
96 SET(_rcc_RESOURCES ${RC_GENERATED})
97 ADD_DEFINITIONS(-DHAS_PV_DOC)
99 MESSAGE(WARNING "Help file for ParaView has not been found! ParaView documentation will not be available.")
105 # sources / rcc wrappings
106 QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
108 # sources / moc wrappings
109 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
114 PVGUI_Module_actions.cxx
115 PVGUI_Module_widgets.cxx
116 PVGUI_ParaViewSettingsPane.cxx
120 # sources / to compile
130 ADD_LIBRARY(PARAVIS ${PVGUI_SOURCES})
131 TARGET_LINK_LIBRARIES(PARAVIS ${_link_LIBRARIES})
132 INSTALL(TARGETS PARAVIS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
134 # --- header and resources installation ---
135 INSTALL(FILES ${PVGUI_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
136 QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_PARAVIS_INSTALL_RES_DATA}")
137 INSTALL(FILES ${_other_RESOURCES} DESTINATION ${SALOME_PARAVIS_INSTALL_RES_DATA})