1 # Copyright (C) 2010-2016 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})
23 ${CMAKE_CURRENT_SOURCE_DIR}
24 ${OMNIORB_INCLUDE_DIR}
25 ${KERNEL_INCLUDE_DIRS}
29 ${OMNIORB_DEFINITIONS}
34 ${KERNEL_OpUtil} # class SALOME_Exception
36 ${KERNEL_SalomeLifeCycleCORBA}
37 ${KERNEL_SalomeIDLKernel}
42 PVServer_ServiceLoader.h
47 PVServer_ServiceLoader.cxx
51 PVServer_ServiceLoader.i
55 ADD_LIBRARY(PVServerServiceLoader ${_SOURCES})
56 TARGET_LINK_LIBRARIES(PVServerServiceLoader ${_link_LIBRARIES})
57 INSTALL(TARGETS PVServerServiceLoader EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
60 SET_SOURCE_FILES_PROPERTIES(${_SWIG} PROPERTIES CPLUSPLUS ON)
61 SET_SOURCE_FILES_PROPERTIES(${_SWIG} PROPERTIES SWIG_FLAGS "-py3")
62 SWIG_ADD_MODULE(PVServer_ServiceLoader python ${_SWIG})
64 SET_TARGET_PROPERTIES(_PVServer_ServiceLoader PROPERTIES DEBUG_OUTPUT_NAME _PVServer_ServiceLoader_d)
66 SWIG_LINK_LIBRARIES(PVServer_ServiceLoader ${PYTHON_LIBRARIES} PVServerServiceLoader)
68 INSTALL(TARGETS ${SWIG_MODULE_PVServer_ServiceLoader_REAL_NAME} EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_PYTHON})
69 SALOME_INSTALL_SCRIPTS(${CMAKE_CURRENT_BINARY_DIR}/PVServer_ServiceLoader.py ${SALOME_INSTALL_PYTHON})
71 # --- header installation ---
72 INSTALL(FILES ${_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})