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