]> SALOME platform Git repositories - modules/hydro.git/blob - src/HYDROData/CMakeLists.txt
Salome HOME
Algorithms to convert 'TopoDS_Wire' object to a wire composed of B-spline edges were...
[modules/hydro.git] / src / HYDROData / CMakeLists.txt
1 #include(../../CMake/Common.cmake)
2
3 set(PROJECT_HEADERS
4     HYDROData.h
5     HYDROData_AltitudeObject.h
6     HYDROData_Application.h
7     HYDROData_ArtificialObject.h
8     HYDROData_Bathymetry.h
9     HYDROData_BSplineOperation.h
10     HYDROData_CalculationCase.h
11     HYDROData_Channel.h
12     HYDROData_Confluence.h
13     HYDROData_Digue.h
14     HYDROData_Document.h
15     HYDROData_DummyObject3D.h
16     HYDROData_Entity.h
17     HYDROData_IAltitudeObject.h
18     HYDROData_IInterpolator.h
19     HYDROData_Image.h
20     HYDROData_ImmersibleZone.h
21     HYDROData_IPolyline.h
22     HYDROData_Iterator.h
23     HYDROData_Lambert93.h
24     HYDROData_NaturalObject.h
25     HYDROData_Object.h
26     HYDROData_Obstacle.h
27     HYDROData_ObstacleAltitude.h
28     HYDROData_OperationsFactory.h
29     HYDROData_Pipes.h
30     HYDROData_PolylineOperator.h
31     HYDROData_PolylineXY.h
32     HYDROData_Polyline3D.h
33     HYDROData_PriorityQueue.h
34     HYDROData_Profile.h
35     HYDROData_ProfileUZ.h
36     HYDROData_Projection.h
37     HYDROData_Region.h
38     HYDROData_River.h
39     HYDROData_ShapesGroup.h
40     HYDROData_ShapesTool.h
41     HYDROData_SplittedShapesGroup.h
42     HYDROData_SplitToZonesTool.h
43     HYDROData_Stream.h
44     HYDROData_StreamAltitude.h
45     HYDROData_StricklerTable.h
46     HYDROData_LandCover.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_GeomTool.h
54     HYDROData_IProfilesInterpolator.h
55     HYDROData_LinearInterpolator.h
56     HYDROData_InterpolatorsFactory.h
57     HYDROData_SinusX.h
58     HYDROData_ShapeFile.h
59 )
60
61 set(PROJECT_SOURCES 
62     HYDROData_AltitudeObject.cxx
63     HYDROData_Application.cxx
64     HYDROData_ArtificialObject.cxx
65     HYDROData_Bathymetry.cxx
66     HYDROData_BSplineOperation.cxx
67     HYDROData_CalculationCase.cxx
68     HYDROData_Channel.cxx
69     HYDROData_Confluence.cxx
70     HYDROData_Digue.cxx
71     HYDROData_Document.cxx
72     HYDROData_DummyObject3D.cxx
73     HYDROData_Entity.cxx
74     HYDROData_IAltitudeObject.cxx
75     HYDROData_IInterpolator.cxx
76     HYDROData_Image.cxx
77     HYDROData_ImmersibleZone.cxx
78     HYDROData_IPolyline.cxx
79     HYDROData_Iterator.cxx
80     HYDROData_Lambert93.cxx
81     HYDROData_NaturalObject.cxx
82     HYDROData_Object.cxx
83     HYDROData_Obstacle.cxx
84     HYDROData_ObstacleAltitude.cxx
85     HYDROData_OperationsFactory.cxx
86     HYDROData_Pipes.cxx
87     HYDROData_PolylineOperator.cxx
88     HYDROData_PolylineXY.cxx
89     HYDROData_Polyline3D.cxx
90     HYDROData_PriorityQueue.cxx
91     HYDROData_Profile.cxx
92     HYDROData_ProfileUZ.cxx
93     HYDROData_Projection.cxx
94     HYDROData_Region.cxx
95     HYDROData_River.cxx
96     HYDROData_ShapesGroup.cxx
97     HYDROData_ShapesTool.cxx
98     HYDROData_SplittedShapesGroup.cxx
99     HYDROData_SplitToZonesTool.cxx
100     HYDROData_Stream.cxx
101     HYDROData_StreamAltitude.cxx
102     HYDROData_StricklerTable.cxx
103     HYDROData_LandCover.cxx
104     HYDROData_Tool.cxx
105     HYDROData_TopoCurve.cxx
106     HYDROData_Transform.cxx
107     HYDROData_VisualState.cxx
108     HYDROData_Zone.cxx
109     HYDROData_GeomTool.cxx
110     HYDROData_IProfilesInterpolator.cxx
111     HYDROData_LinearInterpolator.cxx
112     HYDROData_InterpolatorsFactory.cxx
113     HYDROData_SinusX.cxx
114     HYDROData_ShapeFile.cxx
115  )
116
117 add_definitions(
118   -DHYDRODATA_EXPORTS
119   ${CAS_DEFINITIONS}
120   ${OMNIORB_DEFINITIONS}
121   ${QT_DEFINITIONS}
122 #  ${GUI_CXXFLAGS}
123   ${GUI_DEFINITIONS}
124   ${GEOM_DEFINITIONS}
125 )
126
127 include_directories(
128   ${CAS_INCLUDE_DIRS}
129   ${QT_INCLUDES}
130   ${CMAKE_CURRENT_SOURCE_DIR}
131 #  ${GUI_ROOT_DIR}/include/salome
132   ${GUI_INCLUDE_DIRS}
133   ${CMAKE_CURRENT_SOURCE_DIR}/../shapelib
134 )
135
136 add_library(HYDROData SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
137 target_link_libraries(HYDROData shapelib ${GEOM_GEOMUtils} ${CAS_OCAF} ${CAS_OCAFVIS} ${CAS_TKG3d} ${CAS_TKGeomBase} ${CAS_TKGeomAlgo}
138                       ${CAS_TKBrep} ${CAS_TKIGES} ${CAS_TKSTEP} ${CAS_TKTopAlgo} ${CAS_TKBO} ${CAS_TKBool} ${CAS_TKOffset}
139                       ${QT_LIBRARIES} ${GUI_ImageComposer} ${CAS_TKHLR} ${GEOM_GEOM} ${GEOM_GEOMBase} ${GEOM_CurveCreator} )
140 INSTALL(TARGETS HYDROData EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
141
142 set(PROJECT_LIBRARIES shapelib HYDROData)
143
144 # tests
145 if(SALOME_BUILD_TESTS)
146
147   set(TEST_HEADERS 
148     test_HYDROData_Bathymetry.h
149     test_HYDROData_BSplineOperation.h
150     test_HYDROData_CalculationCase.h
151     test_HYDROData_Document.h
152     test_HYDROData_Entity.h
153     test_HYDROData_Image.h
154     test_HYDROData_Iterator.h
155     test_HYDROData_OperationsFactory.h
156     test_HYDROData_PolylineXY.h
157     test_HYDROData_StricklerTable.h
158   )
159
160   set(TEST_SOURCES 
161     test_HYDROData_Main.cxx
162     test_HYDROData_Bathymetry.cxx
163     test_HYDROData_BSplineOperation.cxx
164     test_HYDROData_CalculationCase.cxx
165     test_HYDROData_Document.cxx
166     test_HYDROData_Entity.cxx
167     test_HYDROData_Image.cxx
168     test_HYDROData_Iterator.cxx
169     test_HYDROData_OperationsFactory.cxx
170     test_HYDROData_PolylineXY.cxx
171     test_HYDROData_StricklerTable.cxx
172   )
173   
174   set(TEST_EXE test_HYDROData)
175   include(../../CMake/CPPUnitTests.cmake)
176   target_link_libraries(test_HYDROData ${CAS_OCAF} ${CAS_MODELER} ${QT_LIBRARIES} ${CPPUNIT_LIBRARIES} HYDROData)
177
178 endif(SALOME_BUILD_TESTS)
179
180 #include(../../CMake/CommonInstall.cmake)