1 # Copyright (C) 2007-2012 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.
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 FIND_PACKAGE(SWIG REQUIRED)
21 INCLUDE(${SWIG_USE_FILE})
23 SET_SOURCE_FILES_PROPERTIES(libMedCorba_Swig.i PROPERTIES CPLUSPLUS ON)
24 SET_SOURCE_FILES_PROPERTIES(libMedCorba_Swig.i PROPERTIES SWIG_DEFINITIONS "-shadow")
27 ${PYTHON_INCLUDE_DIRS}
28 ${PTHREAD_INCLUDE_DIRS}
29 ${OMNIORB_INCLUDE_DIRS}
32 ${KERNEL_ROOT_DIR}/include/salome
33 ${CMAKE_CURRENT_BINARY_DIR}/../../idl
34 ${CMAKE_CURRENT_SOURCE_DIR}
35 ${CMAKE_CURRENT_SOURCE_DIR}/../MED
36 ${CMAKE_CURRENT_SOURCE_DIR}/../MEDMEM_I
37 ${CMAKE_CURRENT_SOURCE_DIR}/../MEDMEM
38 ${CMAKE_CURRENT_SOURCE_DIR}/../MEDMEM_SWIG
39 ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL
40 ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/Bases
41 ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/GaussPoints
44 SWIG_ADD_MODULE(libMedCorba_Swig python libMedCorba_Swig.i)
45 SWIG_LINK_LIBRARIES(libMedCorba_Swig ${PYTHON_LIBS} MEDMEMImpl MEDEngine ${PLATFORM_LIBS})
46 SET_TARGET_PROPERTIES(_libMedCorba_Swig PROPERTIES COMPILE_FLAGS "${OMNIORB_DEFINITIONS} ${HDF5_DEFINITIONS} ${MED3_DEFINITIONS} ${XDR_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
48 SET(MED_MedCorba_Swig_salomescript_DATA
49 medcorba_test.py batchmode_medcorba_test.py batchmode_medcorba_test1.py
52 IF(${MACHINE} STREQUAL WINDOWS)
53 SET_TARGET_PROPERTIES(_libMedCorba_Swig PROPERTIES DEBUG_OUTPUT_NAME _libMedCorba_Swig_d)
54 ENDIF(${MACHINE} STREQUAL WINDOWS)
55 INSTALL(TARGETS _libMedCorba_Swig DESTINATION ${MED_salomepythondir})
56 INSTALL(FILES libMedCorba_Swig.i DESTINATION ${MED_salomeinclude_HEADERS})
57 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libMedCorba_Swig.py DESTINATION ${MED_salomescript_PYTHON})
58 INSTALL(FILES ${MED_MedCorba_Swig_salomescript_DATA} DESTINATION ${MED_salomescript_DATA})