1 # Copyright (C) 2012-2022 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} ${MEDFILE_DEFINITIONS} ${OMNIORB_DEFINITIONS})
23 ${OMNIORB_INCLUDE_DIR} ${OMNIORB_INCLUDE_DIRS}
24 ${MEDFILE_INCLUDE_DIRS}
26 ${PTHREAD_INCLUDE_DIR}
27 ${PYTHON_INCLUDE_DIRS}
28 ${MEDCOUPLING_INCLUDE_DIRS}
29 ${CMAKE_CURRENT_BINARY_DIR}
30 ${CMAKE_CURRENT_SOURCE_DIR}/..
31 ${PROJECT_BINARY_DIR}/idl
35 MEDCommandsHistoryManager_i.cxx
39 MEDPresentationManager_i.cxx
42 MEDPresentationMeshView.cxx
43 MEDPresentationScalarMap.cxx
44 MEDPresentationContour.cxx
45 MEDPresentationVectorField.cxx
46 MEDPresentationSlices.cxx
47 MEDPresentationPointSprite.cxx
48 MEDPresentationPlot3D.cxx
49 MEDPresentationDeflectionShape.cxx
50 MEDPresentationStreamLines.cxx
51 MEDPresentationCutSegment.cxx
53 MEDFactory_No_Session_i.cxx
54 MEDFactory_Session_i.cxx
58 SET(MEDEngineCommon_SOURCES
62 SET(MEDFactoryEngine_SOURCES
63 _MEDFactory_Session_i.cxx
75 ${KERNEL_TOOLSDS} ${KERNEL_SalomeDS} ${KERNEL_SalomeHDFPersist} ${KERNEL_SalomeContainer} ${KERNEL_SalomeCommunication}
76 ${KERNEL_SalomeKernelHelpers} ${KERNEL_SalomeLifeCycleCORBA} ${KERNEL_SALOMELocalTrace} ${KERNEL_SALOMEBasics}
77 ${KERNEL_SalomeGenericObj}
78 ${MEDFILE_C_LIBRARIES}
82 ${MEDCoupling_medcoupling} ${MEDCoupling_medloader} ${MEDCoupling_medcouplingremapper}
85 # This undefines the macros MIN and MAX which are specified in the windows headers
87 SET(COMMON_FLAGS "${COMMON_FLAGS} -DNOMINMAX")
90 ADD_LIBRARY(MEDEngineCommon SHARED ${MEDEngineCommon_SOURCES})
91 SET_TARGET_PROPERTIES(MEDEngineCommon PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
92 TARGET_LINK_LIBRARIES(MEDEngineCommon ${COMMON_LIBS})
94 ADD_LIBRARY(MEDFactoryEngine SHARED ${MEDFactoryEngine_SOURCES})
95 SET_TARGET_PROPERTIES(MEDFactoryEngine PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
96 TARGET_LINK_LIBRARIES(MEDFactoryEngine ${COMMON_LIBS} MEDEngineCommon)
98 ADD_LIBRARY(FIELDSEngine SHARED ${MEDEngine_SOURCES})
99 SET_TARGET_PROPERTIES(FIELDSEngine PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
100 TARGET_LINK_LIBRARIES(FIELDSEngine ${COMMON_LIBS} MEDEngineCommon)
102 #INSTALL(TARGETS MEDFactoryEngine DESTINATION ${SALOME_INSTALL_LIBS})
103 INSTALL(TARGETS MEDEngineCommon EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
104 INSTALL(TARGETS MEDFactoryEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
105 INSTALL(TARGETS FIELDSEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
107 FILE(GLOB MEDCALC_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
108 INSTALL(FILES ${MEDCALC_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})
109 FILE(GLOB MEDCALC_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.txx")
110 INSTALL(FILES ${MEDCALC_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})
112 IF(SALOME_ENABLE_PYTHON)
113 INSTALL(FILES test_medcalc_components.py PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ DESTINATION ${SALOME_INSTALL_BINS}/xmed)