1 # Copyright (C) 2012-2013 EDF
3 # This file is part of SALOME HYDRO module.
5 # SALOME HYDRO module is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # SALOME HYDRO module is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with SALOME HYDRO module. If not, see <http://www.gnu.org/licenses/>.
18 INCLUDE(${SWIG_USE_FILE})
22 # additional include directories
24 ${PYTHON_INCLUDE_DIRS}
25 ${MASCARET_INCLUDE_DIR}
26 ${CMAKE_CURRENT_SOURCE_DIR}
30 SET_SOURCE_FILES_PROPERTIES(mascaret_swig.i PROPERTIES
32 SWIG_DEFINITIONS "-shadow")
34 # additional preprocessor / compiler flags
39 # libraries to link to
55 # scripts / swig wrappings
57 ${CMAKE_CURRENT_BINARY_DIR}/mascaret_swig.py
61 SWIG_ADD_MODULE(mascaret_swig python mascaret_swig.i ${mascaret_SOURCES})
62 SWIG_LINK_LIBRARIES(mascaret_swig "${_link_LIBRARIES}")
64 SET(mypkgpythondir ${SALOME_INSTALL_PYTHON}/salome/hydro/mascaret)
66 INSTALL(TARGETS ${SWIG_MODULE_mascaret_swig_REAL_NAME} DESTINATION ${mypkgpythondir})
67 SALOME_INSTALL_SCRIPTS("${_swig_SCRIPTS}" ${mypkgpythondir})