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
21 ${OMNIORB_INCLUDE_DIR}
22 ${MPI_CXX_INCLUDE_PATH}
23 ${PYTHON_INCLUDE_DIRS}
25 ${PROJECT_BINARY_DIR}/salome_adm
26 ${PROJECT_SOURCE_DIR}/src/Container
27 ${PROJECT_SOURCE_DIR}/src/Notification
28 ${PROJECT_SOURCE_DIR}/src/SALOMELocalTrace
29 ${PROJECT_SOURCE_DIR}/src/Basics
30 ${PROJECT_SOURCE_DIR}/src/NamingService
31 ${PROJECT_SOURCE_DIR}/src/Registry
32 ${PROJECT_SOURCE_DIR}/src/Utils
33 ${PROJECT_SOURCE_DIR}/src/GenericObj
34 ${CMAKE_CURRENT_SOURCE_DIR}/../HDFPersist
35 ${PROJECT_BINARY_DIR}/idl
36 ${PROJECT_SOURCE_DIR}/src/SALOMETraceCollector
39 # This local variable defines the list of dependant libraries common to all target in this package.
46 SalomeParallelIDLKernel
53 SET(SalomeParallelContainer_SOURCES
54 SALOME_ParallelComponent_i.cxx
55 SALOME_ParallelContainer_i.cxx
56 SALOME_ParallelContainerProxy_i.cxx
57 Parallel_Salome_file_i.cxx
58 SALOME_ParallelGlobalProcessVar_i.cxx
61 ADD_DEFINITIONS(${ONMIORB_DEFINITIONS} ${MPI_CXX_COMPILE_FLAGS})
63 ADD_LIBRARY(SalomeParallelContainer ${SalomeParallelContainer_SOURCES})
64 TARGET_LINK_LIBRARIES(SalomeParallelContainer ${COMMON_LIBS} ${MPI_CXX_LIBRARIES})
65 INSTALL(TARGETS SalomeParallelContainer EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
68 SET(SALOME_ParallelContainerProxyMpi_LIBS
69 SalomeParallelContainer
73 ADD_EXECUTABLE(SALOME_ParallelContainerProxyMpi SALOME_ParallelContainerProxyMpi.cxx)
74 TARGET_LINK_LIBRARIES(SALOME_ParallelContainerProxyMpi ${SALOME_ParallelContainerProxyMpi_LIBS})
76 ADD_EXECUTABLE(SALOME_ParallelContainerNodeMpi SALOME_ParallelContainerNodeMpi.cxx)
77 TARGET_LINK_LIBRARIES(SALOME_ParallelContainerNodeMpi ${SALOME_ParallelContainerProxyMpi_LIBS})
79 INSTALL(TARGETS SALOME_ParallelContainerProxyMpi SALOME_ParallelContainerNodeMpi
80 EXPORT ${PROJECT_NAME}TargetGroup
81 DESTINATION ${SALOME_INSTALL_BINS})
84 SET(SALOME_ParallelContainerProxyDummy_LIBS
85 SalomeParallelContainer
89 ADD_EXECUTABLE(SALOME_ParallelContainerProxyDummy SALOME_ParallelContainerProxyDummy.cxx)
90 TARGET_LINK_LIBRARIES(SALOME_ParallelContainerProxyDummy ${SALOME_ParallelContainerProxyDummy_LIBS})
92 ADD_EXECUTABLE(SALOME_ParallelContainerNodeDummy SALOME_ParallelContainerNodeDummy.cxx)
93 TARGET_LINK_LIBRARIES(SALOME_ParallelContainerNodeDummy ${SALOME_ParallelContainerProxyDummy_LIBS})
95 INSTALL(TARGETS SALOME_ParallelContainerNodeDummy SALOME_ParallelContainerProxyDummy DESTINATION ${SALOME_INSTALL_BINS})
97 FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
98 INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})