]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
patch for correct python wrapping generation
authorasl <asl@opencascade.com>
Tue, 6 Dec 2016 12:11:40 +0000 (15:11 +0300)
committerasl <asl@opencascade.com>
Tue, 6 Dec 2016 12:11:40 +0000 (15:11 +0300)
src/HYDROPy/CMakeLists.txt

index 804641250e4f49751baf398085351908a7c68269..26add73de757feff3262163fd1056893e0c3e9d3 100644 (file)
@@ -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})