1 # Copyright (C) 2010-2012 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
32 vtkMedUnstructuredGrid
43 vtkMedIntArrayInternal
53 vtkMedFamilyOnEntityOnProfile
54 vtkMedConstantAttribute
55 vtkMedVariableAttribute
57 vtkGenerateStructElement
63 foreach(class ${MedReader_CLASSES})
64 set(MedReader_SRCS ${MedReader_SRCS} ${class}.cxx)
65 set(MedReader_HDRS ${MedReader_HDRS} ${class}.h)
68 set_source_files_properties(
75 set_source_files_properties(
76 vtkMedIntArrayInternal
78 PROPERTIES WRAP_EXCLUDE 1
81 # this adds target_link_libraries dependencies on all modules listed under
82 # DEPENDS in module.cmake
83 vtk_module_library(vtkMedReader ${MedReader_SRCS})
85 # Introducing selection for parallel compilation
86 # CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/IO/config.h.cmake ${CMAKE_SOURCE_DIR}/IO/config.h )
87 CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
89 target_link_libraries(vtkMedReader ${MED_LIBRARIES})
91 #set(MedReader_BUILD_Testing ${VTK_BUILD_TESTING} CACHE BOOL "Build tests for the MedReader filter")
93 #if(MedReader_BUILD_Testing)
94 # add_subdirectory(Testing)
95 #endif(MedReader_BUILD_Testing)
99 RUNTIME DESTINATION lib/salome
100 LIBRARY DESTINATION lib/salome
101 ARCHIVE DESTINATION lib/salome
104 install(FILES ${MedReader_HDRS} DESTINATION include)
106 # -----------------------------------------------------------------------------
107 # This make it easy for other projects to get the list of files etc. in this
109 # -----------------------------------------------------------------------------
110 # needed by vtkExportKit.cmake
112 #include(${ParaView_CMAKE_DIR}/VTKMono/vtkExportKit.cmake)
114 # #include(${VTK_CMAKE_DIR}/vtkExportKit.cmake)
115 #IF(NOT VTK_INSTALL_NO_DEVELOPMENT)
116 # STRING(REGEX REPLACE "^/" "" VTK_INSTALL_PACKAGE_DIR_CM24 "${VTK_INSTALL_PACKAGE_DIR}")
117 #ENDIF(NOT VTK_INSTALL_NO_DEVELOPMENT)
119 #set(VTK_INSTALL_PACKAGE_DIR_CM24 ${VTK_MODULES_DIR})
123 # ${CMAKE_CURRENT_BINARY_DIR}
124 # "${MedReader_SRCS}"