From 785dcdf2c767c57962eabb00c3b8db0c78d67953 Mon Sep 17 00:00:00 2001 From: asl Date: Tue, 6 Dec 2016 15:11:40 +0300 Subject: [PATCH] patch for correct python wrapping generation --- src/HYDROPy/CMakeLists.txt | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) 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}) -- 2.39.2