Salome HOME
9369071a81ff8b7a920f4c13ec7e5cee6f81d2af
[modules/med.git] / src / MEDMEM / CMakeLists.txt
1 # Copyright (C) 2012-2013  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.
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 INCLUDE_DIRECTORIES(
21   ${MED3_INCLUDE_DIRS}
22   ${HDF5_INCLUDE_DIRS}
23   ${XDR_INCLUDE_DIRS}
24   ${CMAKE_CURRENT_SOURCE_DIR}
25   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL
26   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/Bases
27   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/Geometric2D
28   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/ExprEval
29   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/GaussPoints
30   )
31
32 SET(medmem_SOURCES
33   MEDMEM_Init.cxx
34   MEDMEM_RCBase.cxx
35   MEDMEM_CellModel.cxx
36   MEDMEM_Connectivity.cxx
37   MEDMEM_Coordinate.cxx
38   MEDMEM_DriversDef.cxx
39   MEDMEM_DriverFactory.cxx
40   MEDMEM_Family.cxx
41   MEDMEM_Field.cxx
42   MEDMEM_GenDriver.cxx
43   MEDMEM_Group.cxx
44   MEDMEM_Exception.cxx
45   MEDMEM_MedMeshDriver.cxx
46   MEDMEM_GibiMeshDriver.cxx
47   MEDMEM_PorflowMeshDriver.cxx
48   MEDMEM_SkyLineArray.cxx
49   MEDMEM_Mesh.cxx
50   MEDMEM_Meshing.cxx
51   MEDMEM_Support.cxx
52   MEDMEM_Unit.cxx
53   MEDMEM_VtkMedDriver.cxx
54   MEDMEM_VtkMeshDriver.cxx
55   MEDMEM_Grid.cxx
56   MEDMEM_MedVersion.cxx
57   MEDMEM_TopLevel.cxx
58   MEDMEM_ConnectZone.cxx
59   MEDMEM_EnsightMedDriver.cxx
60   MEDMEM_EnsightFieldDriver.cxx
61   MEDMEM_EnsightUtils.cxx
62   MEDMEM_EnsightMeshDriver.cxx
63   MEDMEM_DriverTools.cxx
64   MEDMEM_GaussLocalization.cxx
65   MEDMEM_Extractor.cxx
66   PointLocator.cxx
67   MEDMEM_Remapper.cxx
68   MEDMEM_GMesh.cxx
69   MEDMEM_MeshFuse.cxx
70   MEDMEM_MedFileBrowser.cxx
71   )
72
73 ADD_LIBRARY(medmem SHARED ${medmem_SOURCES})
74 SET_TARGET_PROPERTIES(medmem PROPERTIES COMPILE_FLAGS "${HDF5_DEFINITIONS} ${MED3_DEFINITIONS} ${XDR_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
75 TARGET_LINK_LIBRARIES(medmem interpkernel ${MED3_LIBS_C_ONLY} ${HDF5_LIBS} ${XDR_LIBS} ${PLATFORM_LIBS})
76 INSTALL(TARGETS medmem DESTINATION ${MED_salomelib_LIBS})
77
78 FILE(GLOB medmem_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
79 INSTALL(FILES ${medmem_HEADERS_HXX} MEDMEM_DriverFactory.ixx DESTINATION ${MED_salomeinclude_HEADERS})
80 FILE(GLOB medmem_HEADERS_TXX "${CMAKE_CURRENT_SOURCE_DIR}/*.txx")
81 INSTALL(FILES ${medmem_HEADERS_TXX} DESTINATION ${MED_salomeinclude_HEADERS})