1 # Copyright (C) 2012 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.
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(${CMAKE_SOURCE_DIR}/salome_adm/cmake_files/UseOMNIORB.cmake)
23 ${OMNIORB_INCLUDE_DIRS}
24 ${CMAKE_CURRENT_BINARY_DIR}
27 CONFIGURE_FILE(Calcium_Ports.idl.in Calcium_Ports.idl @ONLY)
29 SET(SalomeIDLKernel_IDLSOURCES
32 SALOME_ModuleCatalog.idl
33 SALOME_RessourcesCatalog.idl
35 SALOMEDS_Attributes.idl
37 SALOME_ContainerManager.idl
48 SALOME_PACOExtension.idl
52 SALOME_TestComponent.idl
53 SALOME_TestModuleCatalog.idl
54 ${CMAKE_CURRENT_BINARY_DIR}/Calcium_Ports.idl
58 SET(SalomeIDLKernel_IDLSOURCES ${SalomeIDLKernel_IDLSOURCES} SALOME_MPIContainer.idl SALOME_TestMPIComponent.idl)
62 ${CMAKE_CURRENT_SOURCE_DIR}
63 ${CMAKE_CURRENT_BINARY_DIR}
66 SET(COMMON_FLAGS "${OMNIORB_DEFINITIONS} ${PLATFORM_DEFINITIONS}")
69 SET(COMMON_FLAGS "${COMMON_FLAGS} -DNOGDI")
75 OMNIORB_ADD_MODULE(SalomeIDLKernel "${SalomeIDLKernel_IDLSOURCES}" "${IDL_INCLUDE_DIRS}" ${TYPE})
76 TARGET_LINK_LIBRARIES(SalomeIDLKernel ${CORBA_LIBS})
77 SET_TARGET_PROPERTIES(SalomeIDLKernel PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}")
79 INSTALL(TARGETS SalomeIDLKernel DESTINATION ${KERNEL_salomelib_LIBS})
81 IF(WITH_PACO_PARALLEL)
82 SET(SalomeParallelIDLKernel_IDLSOURCES
83 SALOME_ComponentPaCO.idl
86 SALOME_ParamPortsPaCO.idl
87 SALOME_PACOExtensionPaCO.idl
88 SALOME_GenericObjPaCO.idl
90 OMNIORB_ADD_MODULE(SalomeParallelIDLKernel "${SalomeIDLKernel_IDLSOURCES}" "${IDL_INCLUDE_DIRS}")
91 TARGET_LINK_LIBRARIES(SalomeParallelIDLKernel ${CORBA_LIBS})
92 SET_TARGET_PROPERTIES(SalomeParallelIDLKernel PROPERTIES COMPILE_FLAGS "${OMNIORB_DEFINITIONS}")
94 INSTALL(TARGETS SalomeParallelIDLKernel DESTINATION ${KERNEL_salomelib_LIBS})
95 ENDIF(WITH_PACO_PARALLEL)