Salome HOME
Merge akl/tests_update: update tests
[modules/paravis.git] / src / Plugins / TableReader / CMakeLists.txt
1 # Copyright (C) 2010-2014  CEA/DEN, EDF R&D
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 # TableReader plugin consists of two parts:
21 # 1. Table reader - reads tables in Post-Pro specific format
22 # 2. "Table To 3D" filter - creates 3D representation of a table
23
24 cmake_minimum_required(VERSION 2.4)
25 if(COMMAND cmake_policy)
26          cmake_policy(SET CMP0003 NEW)
27 endif(COMMAND cmake_policy)
28
29 project(TableReader)
30
31 # Find ParaView
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})
37
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})
42
43 # Add subdirectories
44 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/Reader ${CMAKE_CURRENT_SOURCE_DIR}/TableTo3DFilter)
45 ADD_SUBDIRECTORY(Reader)
46 ADD_SUBDIRECTORY(TableTo3DFilter)
47 ADD_SUBDIRECTORY(ParaViewPlugin)