include(../../CMake/Common.cmake) INCLUDE(UsePyQt) # additional include directories INCLUDE_DIRECTORIES( ${CAS_INCLUDE_DIRS} ${QT_INCLUDES} ${SIP_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/src/HYDROData ) # additional preprocessor / compiler flags ADD_DEFINITIONS( ${QT_DEFINITIONS} ${CAS_DEFINITIONS} ${PYTHON_DEFINITIONS} ${OMNIORB_DEFINITIONS} ) # libraries to link to SET(_link_LIBRARIES ${PYTHON_LIBRARIES} HYDROData ) SET(_add_SOURCES sipHYDROPycmodule.cc sipHYDROPyNCollection_Sequence0600opencascadehandle0100HYDROData_Entity.cc sipHYDROPygp_XY.cc sipHYDROPygp_XYZ.cc sipHYDROPyHYDROData_AltitudeObject.cc sipHYDROPyHYDROData_Application.cc sipHYDROPyHYDROData_ArtificialObject.cc sipHYDROPyHYDROData_BathymetryAltitudePoint.cc sipHYDROPyHYDROData_Bathymetry.cc sipHYDROPyHYDROData_CalculationCase.cc sipHYDROPyHYDROData_Channel.cc sipHYDROPyHYDROData_Confluence.cc sipHYDROPyHYDROData_Digue.cc sipHYDROPyHYDROData_Document.cc sipHYDROPyHYDROData_Entity.cc sipHYDROPyHYDROData_IAltitudeObject.cc sipHYDROPyHYDROData_IInterpolator.cc sipHYDROPyHYDROData_Image.cc sipHYDROPyHYDROData_ImmersibleZone.cc sipHYDROPyHYDROData_IPolyline.cc sipHYDROPyHYDROData_IProfilesInterpolator.cc sipHYDROPyHYDROData_LandCoverMap.cc sipHYDROPyHYDROData_NaturalObject.cc sipHYDROPyHYDROData_Object.cc sipHYDROPyHYDROData_ObstacleAltitude.cc sipHYDROPyHYDROData_Obstacle.cc sipHYDROPyHYDROData_Polyline3D.cc sipHYDROPyHYDROData_PolylineXY.cc sipHYDROPyHYDROData_Profile.cc sipHYDROPyHYDROData_ProfileUZ.cc sipHYDROPyHYDROData_Region.cc sipHYDROPyHYDROData_River.cc sipHYDROPyHYDROData_ShapesGroup.cc sipHYDROPyHYDROData_SplitShapesGroup.cc sipHYDROPyHYDROData_StreamAltitude.cc sipHYDROPyHYDROData_Stream.cc sipHYDROPyHYDROData_StricklerTable.cc sipHYDROPyHYDROData_Zone.cc sipHYDROPyHYDROData_BCPolygon.cc sipHYDROPyNCollection_Sequence0100gp_XY.cc sipHYDROPyNCollection_Sequence0100gp_XYZ.cc sipHYDROPyNCollection_Sequence0100HYDROData_IPolylineSectionType.cc sipHYDROPyNCollection_Sequence0100TCollection_AsciiString.cc sipHYDROPyNCollection_Sequence1800.cc sipHYDROPyNCollection_Sequence2400.cc sipHYDROPyNCollection_Sequence2600.cc sipHYDROPystdvector0100HYDROData_BathymetryAltitudePoint.cc sipHYDROPystdvector1800.cc sipHYDROPystdvector2400.cc sipHYDROPystdvector2600.cc sipHYDROPyTCollection_AsciiString.cc ) set_source_files_properties( ${_add_SOURCES} PROPERTIES GENERATED TRUE ) # sources / sip wrappings PYQT_WRAP_SIP( _sip_SOURCES HYDROData.sip ) # sources / to compile ADD_LIBRARY( HYDROPy ${_sip_SOURCES} ${_add_SOURCES} ) TARGET_LINK_LIBRARIES(HYDROPy ${_link_LIBRARIES} ${CAS_OCAF} ${CAS_TKKernel} ${CAS_TKBRep} ${QT_LIBRARIES} ${OMNIORB_LIBRARIES} ${GEOM_GEOM} ${GEOM_GEOMBase}) INSTALL(TARGETS HYDROPy EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) IF(WIN32) SET_TARGET_PROPERTIES(HYDROPy PROPERTIES SUFFIX ".pyd" DEBUG_OUTPUT_NAME HYDROPy_d RELEASE_OUTPUT_NAME HYDROPy) ELSE() SET_TARGET_PROPERTIES(HYDROPy PROPERTIES PREFIX "") ENDIF()