1 # Copyright (C) 2010-2013 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.
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
20 # NavigationMode plugin.
21 # This is auto-start plugin providing navigation
22 # mode in 3D viewer in Post-Pro style.
24 CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
25 if(COMMAND cmake_policy)
26 cmake_policy(SET CMP0003 NEW)
27 endif(COMMAND cmake_policy)
29 project(NavigationMode)
32 FIND_PACKAGE(ParaView REQUIRED)
33 if(NOT ParaView_FOUND)
34 MESSAGE(FATAL_ERROR "Please locate ParaView." )
35 ENDIF(NOT ParaView_FOUND)
36 INCLUDE(${PARAVIEW_USE_FILE})
38 # Standard CMake option for building libraries shared or static by default.
39 OPTION(BUILD_SHARED_LIBS
40 "Build with shared libraries."
41 ${VTK_BUILD_SHARED_LIBS})
43 QT4_WRAP_CPP(MOC_SRCS pqSetModeStarter.h)
45 ADD_PARAVIEW_AUTO_START(IFACES IFACE_SRCS CLASS_NAME pqSetModeStarter
48 ADD_PARAVIEW_PLUGIN(NavigationMode "1.0"
49 GUI_INTERFACES ${IFACES}
50 SOURCES pqSetModeStarter.cxx ${MOC_SRCS} ${RCS_SRCS} ${IFACE_SRCS})
54 TARGETS NavigationMode
55 RUNTIME DESTINATION lib/paraview
56 LIBRARY DESTINATION lib/paraview
57 ARCHIVE DESTINATION lib/paraview