Salome HOME
9c9046e7740ec47e2039726c68583528032f5804
[tools/medcoupling.git] / src / MEDCalculator / CMakeLists.txt
1 # Copyright (C) 2007-2012  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 ADD_SUBDIRECTORY(Swig)
21 ADD_SUBDIRECTORY(Test)
22
23 INCLUDE_DIRECTORIES(
24   ${MED3_INCLUDE_DIRS}
25   ${HDF5_INCLUDE_DIRS}
26   ${OMNIORB_INCLUDE_DIRS}
27   ${KERNEL_ROOT_DIR}/include/salome
28   ${CMAKE_CURRENT_BINARY_DIR}/../../idl
29   ${CMAKE_CURRENT_SOURCE_DIR}/../MEDCouplingCorba
30   ${CMAKE_CURRENT_SOURCE_DIR}/../MEDLoader
31   ${CMAKE_CURRENT_SOURCE_DIR}/../MEDCoupling
32   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL
33   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/Bases
34   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/Geometric2D
35   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/ExprEval
36   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/GaussPoints
37   )
38
39 SET(medcalculator_SOURCES
40   MEDCalculatorBrowserMesh.cxx
41   MEDCalculatorBrowserField.cxx
42   MEDCalculatorBrowserStep.cxx
43   MEDCalculatorBrowserLiteStruct.cxx
44   MEDCalculatorDBRangeSelection.cxx
45   MEDCalculatorDBSliceField.cxx
46   MEDCalculatorDBField.cxx
47 )
48
49 ADD_LIBRARY(medcalculator SHARED ${medcalculator_SOURCES})
50 SET_TARGET_PROPERTIES(medcalculator PROPERTIES COMPILE_FLAGS "${HDF5_DEFINITIONS} ${MED3_DEFINITIONS}")
51 TARGET_LINK_LIBRARIES(medcalculator medloader medcouplingcorba ${KERNEL_LDFLAGS} ${SALOMELocalTrace} ${SalomeNS} ${OpUtil})
52 INSTALL(TARGETS medcalculator DESTINATION ${MED_salomelib_LIBS})
53
54 FILE(GLOB medcalculator_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
55 INSTALL(FILES ${medcalculator_HEADERS_HXX} DESTINATION ${MED_salomeinclude_HEADERS})