From: asl Date: Tue, 6 Dec 2016 12:11:40 +0000 (+0300) Subject: patch for correct python wrapping generation X-Git-Tag: Salome_8_3_Hydro_1_1rc1~58^2~15^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=785dcdf2c767c57962eabb00c3b8db0c78d67953;p=modules%2Fhydro.git patch for correct python wrapping generation --- diff --git a/src/HYDROPy/CMakeLists.txt b/src/HYDROPy/CMakeLists.txt index 80464125..26add73d 100644 --- a/src/HYDROPy/CMakeLists.txt +++ b/src/HYDROPy/CMakeLists.txt @@ -25,13 +25,6 @@ SET(_link_LIBRARIES HYDROData ) -# --- resources --- - -# sip files / to be processed by sip -SET(_sip_input_file - HYDROData.sip -) - SET(_add_SOURCES sipHYDROPycmodule.cc sipHYDROPyNCollection_Sequence0600opencascadehandle0100HYDROData_Entity.cc @@ -85,13 +78,13 @@ SET(_add_SOURCES sipHYDROPyTCollection_AsciiString.cc ) +set_source_files_properties( ${_add_SOURCES} PROPERTIES GENERATED TRUE ) + # sources / sip wrappings -PYQT_WRAP_SIP(_sip_SOURCES ${_sip_files} SOURCES ${_add_SOURCES}) +PYQT_WRAP_SIP( _sip_SOURCES HYDROData.sip ) # sources / to compile -SET(HYDROPy_SOURCES ${_sip_SOURCES}) - -ADD_LIBRARY(HYDROPy ${HYDROPy_SOURCES}) +ADD_LIBRARY( HYDROPy ${_sip_SOURCES} ${_add_SOURCES} ) TARGET_LINK_LIBRARIES(HYDROPy ${_link_LIBRARIES}) INSTALL(TARGETS HYDROPy EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})