Salome HOME
[fix] Corrections for version value
[modules/hydro.git] / src / HYDROData / CMakeLists.txt
1 include(../../CMake/Common.cmake)
2
3 set(PROJECT_HEADERS
4     HYDRO_trace.hxx
5     HYDROData.h
6     HYDROData_AltitudeObject.h
7     HYDROData_Application.h
8     HYDROData_ArtificialObject.h
9     HYDROData_Bathymetry.h
10     HYDROData_BSplineOperation.h
11     HYDROData_CalculationCase.h
12     HYDROData_Channel.h
13     HYDROData_ChannelAltitude.h
14     HYDROData_Confluence.h
15     HYDROData_Digue.h
16     HYDROData_Document.h
17     HYDROData_DummyObject3D.h
18     HYDROData_Entity.h
19     HYDROData_IAltitudeObject.h
20     HYDROData_IInterpolator.h
21     HYDROData_Image.h
22     HYDROData_ImmersibleZone.h
23     HYDROData_IPolyline.h
24     HYDROData_Iterator.h
25     HYDROData_Lambert93.h
26     HYDROData_NaturalObject.h
27     HYDROData_Object.h
28     HYDROData_Obstacle.h
29     HYDROData_ObstacleAltitude.h
30     HYDROData_OperationsFactory.h
31     HYDROData_PolylineOperator.h
32     HYDROData_PolylineXY.h
33     HYDROData_Polyline3D.h
34     HYDROData_PriorityQueue.h
35     HYDROData_Profile.h
36     HYDROData_ProfileUZ.h
37     HYDROData_Projection.h
38     HYDROData_Region.h
39     HYDROData_River.h
40     HYDROData_ShapesGroup.h
41     HYDROData_ShapesTool.h
42     HYDROData_SplitShapesGroup.h
43     HYDROData_SplitToZonesTool.h
44     HYDROData_Stream.h
45     HYDROData_StreamAltitude.h
46     HYDROData_StricklerTable.h
47     HYDROData_Tool.h
48     HYDROData_TopoCurve.h
49     HYDROData_Transform.h
50     HYDROData_VisualState.h
51     HYDROData_Warning.h
52     HYDROData_Zone.h
53     HYDROData_Tree.hxx
54     HYDROData_Quadtree.hxx
55     HYDROData_QuadtreeNode.hxx
56     HYDROData_Octree.hxx
57     HYDROData_OctreeNode.hxx
58     HYDROData_GeomTool.h
59     HYDROData_IProfilesInterpolator.h
60     HYDROData_LinearInterpolator.h
61     HYDROData_InterpolatorsFactory.h
62     HYDROData_SinusX.h
63     HYDROData_ShapeFile.h
64     HYDROData_LandCoverMap.h
65     HYDROData_LCM_FaceClassifier.h
66     HYDROData_DTM.h   
67     HYDROData_BCPolygon.h
68     HYDROData_BoundaryPolygonTools.h 
69     HYDROData_CompleteCalcCase.h 
70     HYDROData_StreamLinearInterpolation.h
71     HYDROData_LISM.h
72 )
73
74 set(PROJECT_SOURCES 
75     HYDROData_AltitudeObject.cxx
76     HYDROData_Application.cxx
77     HYDROData_ArtificialObject.cxx
78     HYDROData_Bathymetry.cxx
79     HYDROData_BSplineOperation.cxx
80     HYDROData_CalculationCase.cxx
81     HYDROData_Channel.cxx
82     HYDROData_ChannelAltitude.cxx
83     HYDROData_Confluence.cxx
84     HYDROData_Digue.cxx
85     HYDROData_Document.cxx
86     HYDROData_DummyObject3D.cxx
87     HYDROData_Entity.cxx
88     HYDROData_IAltitudeObject.cxx
89     HYDROData_IInterpolator.cxx
90     HYDROData_Image.cxx
91     HYDROData_ImmersibleZone.cxx
92     HYDROData_IPolyline.cxx
93     HYDROData_Iterator.cxx
94     HYDROData_Lambert93.cxx
95     HYDROData_NaturalObject.cxx
96     HYDROData_Object.cxx
97     HYDROData_Obstacle.cxx
98     HYDROData_ObstacleAltitude.cxx
99     HYDROData_OperationsFactory.cxx
100     HYDROData_PolylineOperator.cxx
101     HYDROData_PolylineXY.cxx
102     HYDROData_Polyline3D.cxx
103     HYDROData_PriorityQueue.cxx
104     HYDROData_Profile.cxx
105     HYDROData_ProfileUZ.cxx
106     HYDROData_Projection.cxx
107     HYDROData_Region.cxx
108     HYDROData_River.cxx
109     HYDROData_ShapesGroup.cxx
110     HYDROData_ShapesTool.cxx
111     HYDROData_SplitShapesGroup.cxx
112     HYDROData_SplitToZonesTool.cxx
113     HYDROData_Stream.cxx
114     HYDROData_StreamAltitude.cxx
115     HYDROData_StricklerTable.cxx
116     HYDROData_Tool.cxx
117     HYDROData_TopoCurve.cxx
118     HYDROData_Transform.cxx
119     HYDROData_VisualState.cxx
120     HYDROData_Zone.cxx
121     HYDROData_Quadtree.cxx
122     HYDROData_QuadtreeNode.cxx
123     HYDROData_Octree.cxx
124     HYDROData_OctreeNode.cxx
125     HYDROData_GeomTool.cxx
126     HYDROData_IProfilesInterpolator.cxx
127     HYDROData_LinearInterpolator.cxx
128     HYDROData_InterpolatorsFactory.cxx
129     HYDROData_SinusX.cxx
130     HYDROData_ShapeFile.cxx
131     HYDROData_LandCoverMap.cxx
132     HYDROData_LCM_FaceClassifier.cxx
133     HYDROData_DTM.cxx
134     HYDROData_BCPolygon.cxx
135     HYDROData_BoundaryPolygonTools.cxx
136     HYDROData_CompleteCalcCase.cxx
137     HYDROData_StreamLinearInterpolation.cxx
138     HYDROData_LISM.cxx
139  )
140
141 SET( ECW_INCLUDES $ENV{ECWLIB_ROOT_DIR}/include )
142 link_directories( $ENV{ECWLIB_ROOT_DIR}/lib )
143
144 IF( ${WIN32} )
145   SET( ECW_LIBRARIES libecwj2 )
146 ELSE()
147   SET( ECW_LIBRARIES ecwj2 )
148 ENDIF()
149
150 add_definitions(
151   -DHYDRODATA_EXPORTS
152   ${CAS_DEFINITIONS}
153   ${OMNIORB_DEFINITIONS}
154   ${QT_DEFINITIONS}
155 #  ${GUI_CXXFLAGS}
156   ${GUI_DEFINITIONS}
157   ${GEOM_DEFINITIONS}
158 )
159
160 include_directories(
161   ${CAS_INCLUDE_DIRS}
162   ${QT_INCLUDES}
163   ${VTK_INCLUDE_DIRS}
164   ${KERNEL_INCLUDE_DIRS}
165   ${GUI_INCLUDE_DIRS}
166   ${CMAKE_CURRENT_SOURCE_DIR}/../shapelib
167   ${ECW_INCLUDES}
168 )
169
170 add_library(HYDROData SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
171 set_target_properties( HYDROData PROPERTIES LINK_INTERFACE_LIBRARIES "" )
172 target_link_libraries(HYDROData shapelib ${GEOM_GEOMUtils} ${CAS_OCAF} ${CAS_OCAFVIS} ${CAS_TKG3d} ${CAS_TKGeomBase} ${CAS_TKGeomAlgo}
173                       ${CAS_TKBrep} ${OpenCASCADE_DataExchange_LIBRARIES} ${CAS_TKTopAlgo} ${CAS_TKBO} ${CAS_TKBool} ${CAS_TKOffset} ${VTK_LIBRARIES}
174                       ${QT_LIBRARIES} ${GUI_ImageComposer} ${CAS_TKHLR} ${GEOM_GEOM} ${GEOM_GEOMBase} ${GEOM_CurveCreator} ${ECW_LIBRARIES} )
175 INSTALL(TARGETS HYDROData EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
176
177 set(PROJECT_LIBRARIES shapelib HYDROData)
178
179 #include(../../CMake/CommonInstall.cmake)