1 # Copyright (C) 2012-2015 CEA/DEN, EDF R&D, OPEN CASCADE
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 INCLUDE(${SWIG_USE_FILE})
22 SET_SOURCE_FILES_PROPERTIES(libSALOME_Comm.i PROPERTIES CPLUSPLUS ON)
23 SET_SOURCE_FILES_PROPERTIES(libSALOME_Comm.i PROPERTIES SWIG_DEFINITIONS "-shadow")
26 ${PYTHON_INCLUDE_DIRS}
27 ${OMNIORB_INCLUDE_DIR}
28 ${PROJECT_BINARY_DIR}/salome_adm
29 ${CMAKE_CURRENT_SOURCE_DIR}
30 ${CMAKE_CURRENT_SOURCE_DIR}/../Communication
31 ${CMAKE_CURRENT_SOURCE_DIR}/../Basics
32 ${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
33 ${CMAKE_CURRENT_SOURCE_DIR}/../Utils
34 ${PROJECT_BINARY_DIR}/idl
37 ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
38 SET(_libSALOME_Comm_LIBS
44 INCLUDE_DIRECTORIES(${MPI_CXX_INCLUDE_PATH})
46 ADD_DEFINITIONS(${MPI_DEFINITIONS})
47 SET(_libSALOME_Comm_LIBS
48 ${_libSALOME_Comm_LIBS}
53 SWIG_ADD_MODULE(libSALOME_Comm python libSALOME_Comm.i)
54 SWIG_LINK_LIBRARIES(libSALOME_Comm ${_libSALOME_Comm_LIBS})
56 IF(${MACHINE} STREQUAL WINDOWS)
57 SET_TARGET_PROPERTIES(_libSALOME_Comm PROPERTIES DEBUG_OUTPUT_NAME _libSALOME_Comm_d)
58 ENDIF(${MACHINE} STREQUAL WINDOWS)
60 ADD_DEPENDENCIES(_libSALOME_Comm SalomeIDLKernel)
62 INSTALL(TARGETS _libSALOME_Comm DESTINATION ${SALOME_INSTALL_PYTHON})
63 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libSALOME_Comm.py DESTINATION ${SALOME_INSTALL_PYTHON})