]> SALOME platform Git repositories - modules/hydro.git/blob - src/HYDROPy/CMakeLists.txt
Salome HOME
refs# 1917 + protection against null shapes wires in GetMiddlePoint()
[modules/hydro.git] / src / HYDROPy / CMakeLists.txt
1 include(../../CMake/Common.cmake)
2 INCLUDE(UsePyQt)
3
4 # additional include directories
5 INCLUDE_DIRECTORIES(
6   ${CAS_INCLUDE_DIRS}
7   ${QT_INCLUDES}
8   ${SIP_INCLUDE_DIR}
9   ${PYTHON_INCLUDE_DIRS}
10   ${CMAKE_CURRENT_SOURCE_DIR}
11   ${PROJECT_SOURCE_DIR}/src/HYDROData
12 )
13
14 # additional preprocessor / compiler flags
15 ADD_DEFINITIONS(
16   ${QT_DEFINITIONS}
17   ${CAS_DEFINITIONS}
18   ${PYTHON_DEFINITIONS}
19   ${OMNIORB_DEFINITIONS}
20 )
21
22 # libraries to link to
23 SET(_link_LIBRARIES
24   ${PYTHON_LIBRARIES}
25   HYDROData
26 )
27
28 SET(_add_SOURCES
29   sipHYDROPycmodule.cc
30   sipHYDROPyNCollection_Sequence0600opencascadehandle0100HYDROData_Entity.cc
31   sipHYDROPygp_XY.cc
32   sipHYDROPygp_XYZ.cc
33   sipHYDROPyHYDROData_AltitudeObject.cc
34   sipHYDROPyHYDROData_Application.cc
35   sipHYDROPyHYDROData_ArtificialObject.cc
36   sipHYDROPyHYDROData_BathymetryAltitudePoint.cc
37   sipHYDROPyHYDROData_Bathymetry.cc
38   sipHYDROPyHYDROData_CalculationCase.cc
39   sipHYDROPyHYDROData_Channel.cc
40   sipHYDROPyHYDROData_Confluence.cc
41   sipHYDROPyHYDROData_Digue.cc
42   sipHYDROPyHYDROData_Document.cc
43   sipHYDROPyHYDROData_Entity.cc
44   sipHYDROPyHYDROData_IAltitudeObject.cc
45   sipHYDROPyHYDROData_IInterpolator.cc
46   sipHYDROPyHYDROData_Image.cc
47   sipHYDROPyHYDROData_ImmersibleZone.cc
48   sipHYDROPyHYDROData_IPolyline.cc
49   sipHYDROPyHYDROData_IProfilesInterpolator.cc
50   sipHYDROPyHYDROData_LandCoverMap.cc
51   sipHYDROPyHYDROData_NaturalObject.cc
52   sipHYDROPyHYDROData_Object.cc
53   sipHYDROPyHYDROData_ObstacleAltitude.cc
54   sipHYDROPyHYDROData_Obstacle.cc
55   sipHYDROPyHYDROData_Polyline3D.cc
56   sipHYDROPyHYDROData_PolylineXY.cc
57   sipHYDROPyHYDROData_Profile.cc
58   sipHYDROPyHYDROData_ProfileUZ.cc
59   sipHYDROPyHYDROData_Region.cc
60   sipHYDROPyHYDROData_River.cc
61   sipHYDROPyHYDROData_ShapesGroup.cc
62   sipHYDROPyHYDROData_SplitShapesGroup.cc
63   sipHYDROPyHYDROData_StreamAltitude.cc
64   sipHYDROPyHYDROData_Stream.cc
65   sipHYDROPyHYDROData_StricklerTable.cc
66   sipHYDROPyHYDROData_Zone.cc
67   sipHYDROPyHYDROData_BCPolygon.cc
68   sipHYDROPyNCollection_Sequence0100gp_XY.cc
69   sipHYDROPyNCollection_Sequence0100gp_XYZ.cc
70   sipHYDROPyNCollection_Sequence0100HYDROData_IPolylineSectionType.cc
71   sipHYDROPyNCollection_Sequence0100TCollection_AsciiString.cc
72   sipHYDROPyNCollection_Sequence1800.cc
73   sipHYDROPyNCollection_Sequence2400.cc
74   sipHYDROPyNCollection_Sequence2600.cc
75   sipHYDROPystdvector0100HYDROData_BathymetryAltitudePoint.cc
76   sipHYDROPystdvector1800.cc
77   sipHYDROPystdvector2400.cc
78   sipHYDROPystdvector2600.cc
79   sipHYDROPyTCollection_AsciiString.cc
80 )
81
82 set_source_files_properties( ${_add_SOURCES} PROPERTIES GENERATED TRUE )
83
84 # sources / sip wrappings
85 PYQT_WRAP_SIP( _sip_SOURCES HYDROData.sip )
86
87 # sources / to compile
88 ADD_LIBRARY( HYDROPy ${_sip_SOURCES} ${_add_SOURCES} )
89
90 TARGET_LINK_LIBRARIES(HYDROPy ${_link_LIBRARIES} ${CAS_OCAF} ${CAS_TKKernel} ${CAS_TKBRep} ${QT_LIBRARIES} ${OMNIORB_LIBRARIES} ${GEOM_GEOM} ${GEOM_GEOMBase})
91 INSTALL(TARGETS HYDROPy EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
92
93 IF(WIN32)
94   SET_TARGET_PROPERTIES(HYDROPy PROPERTIES SUFFIX ".pyd" DEBUG_OUTPUT_NAME HYDROPy_d RELEASE_OUTPUT_NAME HYDROPy)
95 ELSE()
96   SET_TARGET_PROPERTIES(HYDROPy PROPERTIES PREFIX "")
97 ENDIF()