1 # Copyright (C) 2015-2020 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
19 # Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
27 # additional include directories
30 ${PYTHON_INCLUDE_DIRS}
33 ${CMAKE_CURRENT_SOURCE_DIR}/..
36 # additional preprocessor / compiler flags
37 ADD_DEFINITIONS(${QT_DEFINITIONS})
39 # libraries to link to
40 SET(_link_LIBRARIES ${QT_LIBRARIES} ${PYTHON_LIBRARIES} PyEditor)
44 # sip files / to be processed by sip
45 SET(_sip_files PyEditorPy.sip)
47 # sources / sip wrappings
48 PYQT_WRAP_SIP(_sip_SOURCES ${_sip_files})
50 # sources / to compile
51 SET(PyEditorPy_SOURCES ${_sip_SOURCES})
55 ADD_LIBRARY(PyEditorPy ${PyEditorPy_SOURCES})
57 SET_TARGET_PROPERTIES(PyEditorPy PROPERTIES SUFFIX ".pyd" DEBUG_OUTPUT_NAME PyEditorPy_d RELEASE_OUTPUT_NAME PyEditorPy)
59 SET_TARGET_PROPERTIES(PyEditorPy PROPERTIES PREFIX "")
61 TARGET_LINK_LIBRARIES(PyEditorPy ${_link_LIBRARIES})
62 INSTALL(TARGETS PyEditorPy EXPORT ${TOOLS_EXPORT_NAME}TargetGroup DESTINATION ${PYEDITOR_INSTALL_LIBS})