]> SALOME platform Git repositories - modules/hydro.git/blob - src/HYDROData/CMakeLists.txt
Salome HOME
Merge branch 'BR_v14_rc' into BR_quadtree
[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_Pipes.h
32     HYDROData_PolylineOperator.h
33     HYDROData_PolylineXY.h
34     HYDROData_Polyline3D.h
35     HYDROData_PriorityQueue.h
36     HYDROData_Profile.h
37     HYDROData_ProfileUZ.h
38     HYDROData_Projection.h
39     HYDROData_Region.h
40     HYDROData_River.h
41     HYDROData_ShapesGroup.h
42     HYDROData_ShapesTool.h
43     HYDROData_SplittedShapesGroup.h
44     HYDROData_SplitToZonesTool.h
45     HYDROData_Stream.h
46     HYDROData_StreamAltitude.h
47     HYDROData_StricklerTable.h
48     HYDROData_LandCover.h
49     HYDROData_Tool.h
50     HYDROData_TopoCurve.h
51     HYDROData_Transform.h
52     HYDROData_VisualState.h
53     HYDROData_Warning.h
54     HYDROData_Zone.h
55     HYDROData_Tree.hxx
56     HYDROData_Quadtree.hxx
57     HYDROData_QuadtreeNode.hxx
58     HYDROData_Octree.hxx
59     HYDROData_OctreeNode.hxx
60     HYDROData_GeomTool.h
61     HYDROData_IProfilesInterpolator.h
62     HYDROData_LinearInterpolator.h
63     HYDROData_InterpolatorsFactory.h
64     HYDROData_SinusX.h
65     HYDROData_ShapeFile.h
66 )
67
68 set(PROJECT_SOURCES 
69     HYDROData_AltitudeObject.cxx
70     HYDROData_Application.cxx
71     HYDROData_ArtificialObject.cxx
72     HYDROData_Bathymetry.cxx
73     HYDROData_BSplineOperation.cxx
74     HYDROData_CalculationCase.cxx
75     HYDROData_Channel.cxx
76     HYDROData_ChannelAltitude.cxx
77     HYDROData_Confluence.cxx
78     HYDROData_Digue.cxx
79     HYDROData_Document.cxx
80     HYDROData_DummyObject3D.cxx
81     HYDROData_Entity.cxx
82     HYDROData_IAltitudeObject.cxx
83     HYDROData_IInterpolator.cxx
84     HYDROData_Image.cxx
85     HYDROData_ImmersibleZone.cxx
86     HYDROData_IPolyline.cxx
87     HYDROData_Iterator.cxx
88     HYDROData_Lambert93.cxx
89     HYDROData_NaturalObject.cxx
90     HYDROData_Object.cxx
91     HYDROData_Obstacle.cxx
92     HYDROData_ObstacleAltitude.cxx
93     HYDROData_OperationsFactory.cxx
94     HYDROData_Pipes.cxx
95     HYDROData_PolylineOperator.cxx
96     HYDROData_PolylineXY.cxx
97     HYDROData_Polyline3D.cxx
98     HYDROData_PriorityQueue.cxx
99     HYDROData_Profile.cxx
100     HYDROData_ProfileUZ.cxx
101     HYDROData_Projection.cxx
102     HYDROData_Region.cxx
103     HYDROData_River.cxx
104     HYDROData_ShapesGroup.cxx
105     HYDROData_ShapesTool.cxx
106     HYDROData_SplittedShapesGroup.cxx
107     HYDROData_SplitToZonesTool.cxx
108     HYDROData_Stream.cxx
109     HYDROData_StreamAltitude.cxx
110     HYDROData_StricklerTable.cxx
111     HYDROData_LandCover.cxx
112     HYDROData_Tool.cxx
113     HYDROData_TopoCurve.cxx
114     HYDROData_Transform.cxx
115     HYDROData_VisualState.cxx
116     HYDROData_Zone.cxx
117     HYDROData_Quadtree.cxx
118     HYDROData_QuadtreeNode.cxx
119     HYDROData_Octree.cxx
120     HYDROData_OctreeNode.cxx
121     HYDROData_GeomTool.cxx
122     HYDROData_IProfilesInterpolator.cxx
123     HYDROData_LinearInterpolator.cxx
124     HYDROData_InterpolatorsFactory.cxx
125     HYDROData_SinusX.cxx
126     HYDROData_ShapeFile.cxx
127  )
128
129 add_definitions(
130   -DHYDRODATA_EXPORTS
131   ${CAS_DEFINITIONS}
132   ${OMNIORB_DEFINITIONS}
133   ${QT_DEFINITIONS}
134 #  ${GUI_CXXFLAGS}
135   ${GUI_DEFINITIONS}
136   ${GEOM_DEFINITIONS}
137 )
138
139 include_directories(
140   ${CAS_INCLUDE_DIRS}
141   ${QT_INCLUDES}
142   ${CMAKE_CURRENT_SOURCE_DIR}
143 #  ${GUI_ROOT_DIR}/include/salome
144   ${GUI_INCLUDE_DIRS}
145   ${CMAKE_CURRENT_SOURCE_DIR}/../shapelib
146 )
147
148 add_library(HYDROData SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
149 target_link_libraries(HYDROData shapelib ${GEOM_GEOMUtils} ${CAS_OCAF} ${CAS_OCAFVIS} ${CAS_TKG3d} ${CAS_TKGeomBase} ${CAS_TKGeomAlgo}
150                       ${CAS_TKBrep} ${CAS_TKIGES} ${CAS_TKSTEP} ${CAS_TKTopAlgo} ${CAS_TKBO} ${CAS_TKBool} ${CAS_TKOffset}
151                       ${QT_LIBRARIES} ${GUI_ImageComposer} ${CAS_TKHLR} ${GEOM_GEOM} ${GEOM_GEOMBase} ${GEOM_CurveCreator} )
152 INSTALL(TARGETS HYDROData EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
153
154 set(PROJECT_LIBRARIES shapelib HYDROData)
155
156 # tests
157 if(SALOME_BUILD_TESTS)
158
159   set(TEST_HEADERS 
160     test_HYDROData_Bathymetry.h
161     test_HYDROData_BSplineOperation.h
162     test_HYDROData_CalculationCase.h
163     test_HYDROData_Document.h
164     test_HYDROData_Entity.h
165     test_HYDROData_Image.h
166     test_HYDROData_Iterator.h
167     test_HYDROData_OperationsFactory.h
168     test_HYDROData_PolylineXY.h
169     test_HYDROData_StricklerTable.h
170   )
171
172   set(TEST_SOURCES 
173     test_HYDROData_Main.cxx
174     test_HYDROData_Bathymetry.cxx
175     test_HYDROData_BSplineOperation.cxx
176     test_HYDROData_CalculationCase.cxx
177     test_HYDROData_Document.cxx
178     test_HYDROData_Entity.cxx
179     test_HYDROData_Image.cxx
180     test_HYDROData_Iterator.cxx
181     test_HYDROData_OperationsFactory.cxx
182     test_HYDROData_PolylineXY.cxx
183     test_HYDROData_StricklerTable.cxx
184   )
185   
186   set(TEST_EXE test_HYDROData)
187   include(../../CMake/CPPUnitTests.cmake)
188   target_link_libraries(test_HYDROData ${CAS_OCAF} ${CAS_MODELER} ${QT_LIBRARIES} ${CPPUNIT_LIBRARIES} HYDROData)
189
190 endif(SALOME_BUILD_TESTS)
191
192 #include(../../CMake/CommonInstall.cmake)