1 # Copyright (C) 2012-2013 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_DIR}
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_ResourcesManager.idl
36 SALOMEDS_Attributes.idl
38 SALOME_ContainerManager.idl
49 SALOME_PACOExtension.idl
53 SALOME_TestComponent.idl
54 SALOME_TestModuleCatalog.idl
55 ${CMAKE_CURRENT_BINARY_DIR}/Calcium_Ports.idl
59 SET(SalomeIDLKernel_IDLSOURCES ${SalomeIDLKernel_IDLSOURCES} SALOME_MPIContainer.idl SALOME_TestMPIComponent.idl)
63 ${CMAKE_CURRENT_SOURCE_DIR}
64 ${CMAKE_CURRENT_BINARY_DIR}
67 SET(COMMON_FLAGS ${OMNIORB_DEFINITIONS})
70 SET(COMMON_FLAGS "${COMMON_FLAGS} -DNOGDI")
76 OMNIORB_ADD_MODULE(SalomeIDLKernel "${SalomeIDLKernel_IDLSOURCES}" "${IDL_INCLUDE_DIRS}" ${TYPE})
77 ADD_DEFINITIONS(${COMMON_FLAGS})
78 TARGET_LINK_LIBRARIES(SalomeIDLKernel ${OMNIORB_LIBRARIES})
80 INSTALL(TARGETS SalomeIDLKernel DESTINATION ${KERNEL_salomelib_LIBS})
82 IF(WITH_PACO_PARALLEL)
83 SET(SalomeParallelIDLKernel_IDLSOURCES
84 SALOME_ComponentPaCO.idl
87 SALOME_ParamPortsPaCO.idl
88 SALOME_PACOExtensionPaCO.idl
89 SALOME_GenericObjPaCO.idl
91 OMNIORB_ADD_MODULE(SalomeParallelIDLKernel "${SalomeIDLKernel_IDLSOURCES}" "${IDL_INCLUDE_DIRS}")
92 TARGET_LINK_LIBRARIES(SalomeParallelIDLKernel ${OMNIORB_LIBRARIES})
94 INSTALL(TARGETS SalomeParallelIDLKernel DESTINATION ${KERNEL_salomelib_LIBS})
95 ENDIF(WITH_PACO_PARALLEL)