1 # Copyright (C) 2012-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})
24 # additional include directories
27 ${PTHREAD_INCLUDE_DIR}
29 ${OMNIORB_INCLUDE_DIR}
31 ${KERNEL_INCLUDE_DIRS}
33 ${PROJECT_BINARY_DIR}/idl
35 ${PROJECT_SOURCE_DIR}/src/OBJECT
36 ${PROJECT_SOURCE_DIR}/src/GEOMClient
37 ${PROJECT_SOURCE_DIR}/src/GEOMGUI
38 ${PROJECT_SOURCE_DIR}/src/Material
39 ${CMAKE_CURRENT_SOURCE_DIR}
40 ${CMAKE_CURRENT_BINARY_DIR}
44 SET_SOURCE_FILES_PROPERTIES(libGEOM_Swig.i PROPERTIES CPLUSPLUS ON)
45 SET_SOURCE_FILES_PROPERTIES(libGEOM_Swig.i PROPERTIES SWIG_DEFINITIONS "-shadow")
46 SET_SOURCE_FILES_PROPERTIES(libGEOM_SwigPYTHON_wrap.cxx PROPERTIES COMPILE_FLAGS "-DHAVE_CONFIG_H")
48 # additional preprocessor / compiler flags
51 ${OMNIORB_DEFINITIONS}
55 # libraries to link to
64 # header files / to install
65 SET(libGEOM_Swig_HEADERS
70 # scripts / swig wrappings
72 ${CMAKE_CURRENT_BINARY_DIR}/libGEOM_Swig.py
77 SWIG_ADD_MODULE(libGEOM_Swig python libGEOM_Swig.i libGEOM_Swig.cxx)
78 SWIG_LINK_LIBRARIES(libGEOM_Swig "${_link_LIBRARIES}")
79 SWIG_CHECK_GENERATION(libGEOM_Swig)
81 SET_TARGET_PROPERTIES(_libGEOM_Swig PROPERTIES DEBUG_OUTPUT_NAME _libGEOM_Swig_d)
84 INSTALL(TARGETS _libGEOM_Swig DESTINATION ${SALOME_INSTALL_PYTHON})
86 SALOME_INSTALL_SCRIPTS("${_swig_SCRIPTS}" ${SALOME_INSTALL_PYTHON})