1 # Copyright (C) 2012-2023 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, or (at your option) any later version.
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 ADD_DEFINITIONS(${HDF5_DEFINITIONS} ${BOOST_DEFINITIONS} ${MEDFILE_DEFINITIONS})
23 ADD_DEFINITIONS("-DENABLE_BOOST")
27 ADD_DEFINITIONS(-Wsign-compare -Wconversion)
32 ${MEDFILE_INCLUDE_DIRS}
34 ${CMAKE_CURRENT_SOURCE_DIR}/../MEDLoader
35 ${CMAKE_CURRENT_SOURCE_DIR}/../MEDCoupling
36 ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL
37 ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/Bases
38 ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/Geometric2D
39 ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/ExprEval
40 ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/GaussPoints
43 IF(MEDCOUPLING_USE_MPI)
44 ADD_DEFINITIONS(${MPI_DEFINITIONS})
45 INCLUDE_DIRECTORIES(${MPI_INCLUDE_DIRS})
46 ENDIF(MEDCOUPLING_USE_MPI)
48 SET(renumbercpp_HEADERS_HXX
49 RENUMBER_Renumbering.hxx
50 RenumberingFactory.hxx
54 SET(renumbercpp_SOURCES
55 RENUMBER_Renumbering.cxx
56 RenumberingFactory.cxx
63 SET(renumbercpp_LDFLAGS medloader)
66 INCLUDE_DIRECTORIES(${PARMETIS_INCLUDE_DIRS})
70 INCLUDE_DIRECTORIES(${METIS_INCLUDE_DIRS})
72 SET(renumbercpp_SOURCES ${renumbercpp_SOURCES} RENUMBER_METISRenumbering.cxx)
73 SET(renumbercpp_HEADERS_HXX ${renumbercpp_HEADERS_HXX} RENUMBER_METISRenumbering.hxx)
74 SET(renumbercpp_LDFLAGS ${renumbercpp_LDFLAGS} ${METIS_LIBRARIES})
75 SET(renumber_DEFINITIONS "${renumber_DEFINITIONS} ${METIS_DEFINITIONS}")
79 INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
81 SET(renumbercpp_SOURCES ${renumbercpp_SOURCES} RENUMBER_BOOSTRenumbering.cxx)
82 SET(renumbercpp_HEADERS_HXX ${renumbercpp_HEADERS_HXX} RENUMBER_BOOSTRenumbering.hxx)
83 SET(renumbercpp_LDFLAGS ${renumbercpp_LDFLAGS} ${BOOST_LIBRARIES})
86 IF(MEDCOUPLING_USE_MPI)
87 SET(renumbercpp_LDFLAGS ${renumbercpp_LDFLAGS} ${MPI_LIBRARIES})
88 ENDIF(MEDCOUPLING_USE_MPI)
90 ADD_EXECUTABLE(renumber ${renumber_SOURCES})
91 SET_TARGET_PROPERTIES(renumber PROPERTIES COMPILE_FLAGS "${renumber_DEFINITIONS}")
92 TARGET_LINK_LIBRARIES(renumber renumbercpp)
93 INSTALL(TARGETS renumber DESTINATION ${MEDCOUPLING_INSTALL_BINS})
95 ADD_LIBRARY(renumbercpp ${renumbercpp_SOURCES})
96 SET_TARGET_PROPERTIES(renumbercpp PROPERTIES COMPILE_FLAGS "${renumber_DEFINITIONS}")
97 TARGET_LINK_LIBRARIES(renumbercpp ${renumbercpp_LDFLAGS})
98 INSTALL(TARGETS renumbercpp DESTINATION ${MEDCOUPLING_INSTALL_LIBS})
100 INSTALL(FILES ${renumbercpp_HEADERS_HXX} DESTINATION ${MEDCOUPLING_INSTALL_HEADERS})