Salome HOME
Merge from V6_main 01/04/2013
[modules/med.git] / src / ParaMEDMEM / 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 # Author : Anthony Geay (CEA/DEN)
20
21 INCLUDE_DIRECTORIES(
22   ${MPI_INCLUDE_DIRS}
23   ${CMAKE_CURRENT_SOURCE_DIR}
24   ${CMAKE_CURRENT_SOURCE_DIR}/../MEDCoupling
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(paramedmem_SOURCES
33   ProcessorGroup.cxx
34   MPIProcessorGroup.cxx
35   ParaMESH.cxx
36   ComponentTopology.cxx
37   MPIAccess.cxx
38   InterpolationMatrix.cxx
39   OverlapInterpolationMatrix.cxx
40   StructuredCoincidentDEC.cxx
41   ExplicitCoincidentDEC.cxx
42   InterpKernelDEC.cxx
43   ElementLocator.cxx
44   OverlapElementLocator.cxx
45   MPIAccessDEC.cxx
46   TimeInterpolator.cxx
47   LinearTimeInterpolator.cxx
48   DEC.cxx
49   DisjointDEC.cxx
50   OverlapDEC.cxx
51   ExplicitTopology.cxx
52   MxN_Mapping.cxx
53   OverlapMapping.cxx
54   ICoCoMEDField.cxx
55   ICoCoField.cxx
56   ICoCoTrioField.cxx
57   ParaFIELD.cxx
58   ParaGRID.cxx
59   BlockTopology.cxx
60   )
61
62 ADD_LIBRARY(paramedmem SHARED ${paramedmem_SOURCES})
63 SET_TARGET_PROPERTIES(paramedmem PROPERTIES COMPILE_FLAGS "${MPI_DEFINITIONS}")
64 TARGET_LINK_LIBRARIES(paramedmem medcoupling ${MPI_LIBS})
65 INSTALL(TARGETS paramedmem DESTINATION ${MED_salomelib_LIBS})
66
67 FILE(GLOB paramedmem_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
68 INSTALL(FILES ${paramedmem_HEADERS_HXX} DESTINATION ${MED_salomeinclude_HEADERS})
69
70 # To allow usage as SWIG dependencies:
71 SET(paramedmem_HEADERS_HXX PARENT_SCOPE)
72