Salome HOME
2d7fe409d9119925894d809124da8202464d350d
[modules/smesh.git] / src / MEDWrapper / Base / 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   ${HDF5_INCLUDE_DIRS}
22   ${BOOST_INCLUDE_DIRS}
23 )
24
25 IF(MED_ENABLE_KERNEL)
26   INCLUDE_DIRECTORIES(${KERNEL_ROOT_DIR}/include/salome)
27 ELSE(MED_ENABLE_KERNEL)
28   INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/adm_local_without_kernel)
29 ENDIF(MED_ENABLE_KERNEL)
30
31 SET(MEDWrapperBase_SOURCES
32   MED_Structures.cxx
33   MED_Wrapper.cxx
34   MED_Algorithm.cxx
35   MED_GaussUtils.cxx
36   MED_CoordUtils.cxx
37   MED_Utilities.cxx
38   MED_GaussDef.cxx
39   )
40
41 ADD_LIBRARY(MEDWrapperBase SHARED ${MEDWrapperBase_SOURCES})
42 SET_TARGET_PROPERTIES(MEDWrapperBase PROPERTIES COMPILE_FLAGS "-D${MACHINE} ${HDF5_DEFINITIONS} ${BOOST_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
43 TARGET_LINK_LIBRARIES(MEDWrapperBase ${BOOST_LIB_THREAD} ${BOOST_LIB_DATE_TIME})
44 INSTALL(TARGETS MEDWrapperBase DESTINATION ${MED_salomelib_LIBS})
45
46 FILE(GLOB MEDWrapperBase_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
47 INSTALL(FILES ${MEDWrapperBase_HEADERS_HXX} DESTINATION ${MED_salomeinclude_HEADERS})