]> 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_Confluence.h
14     HYDROData_Digue.h
15     HYDROData_Document.h
16     HYDROData_DummyObject3D.h
17     HYDROData_Entity.h
18     HYDROData_IAltitudeObject.h
19     HYDROData_IInterpolator.h
20     HYDROData_Image.h
21     HYDROData_ImmersibleZone.h
22     HYDROData_IPolyline.h
23     HYDROData_Iterator.h
24     HYDROData_Lambert93.h
25     HYDROData_NaturalObject.h
26     HYDROData_Object.h
27     HYDROData_Obstacle.h
28     HYDROData_ObstacleAltitude.h
29     HYDROData_OperationsFactory.h
30     HYDROData_Pipes.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_Transform.h
49     HYDROData_VisualState.h
50     HYDROData_Warning.h
51     HYDROData_Zone.h
52     HYDROData_Tree.hxx
53     HYDROData_Quadtree.hxx
54     HYDROData_QuadtreeNode.hxx
55     HYDROData_Octree.hxx
56     HYDROData_OctreeNode.hxx
57     HYDROData_GeomTool.h
58     HYDROData_IProfilesInterpolator.h
59     HYDROData_LinearInterpolator.h
60     HYDROData_InterpolatorsFactory.h
61     shapelib/shapefil.h
62 )
63
64 set(PROJECT_SOURCES 
65     HYDROData_AltitudeObject.cxx
66     HYDROData_Application.cxx
67     HYDROData_ArtificialObject.cxx
68     HYDROData_Bathymetry.cxx
69     HYDROData_BSplineOperation.cxx
70     HYDROData_CalculationCase.cxx
71     HYDROData_Channel.cxx
72     HYDROData_Confluence.cxx
73     HYDROData_Digue.cxx
74     HYDROData_Document.cxx
75     HYDROData_DummyObject3D.cxx
76     HYDROData_Entity.cxx
77     HYDROData_IAltitudeObject.cxx
78     HYDROData_IInterpolator.cxx
79     HYDROData_Image.cxx
80     HYDROData_ImmersibleZone.cxx
81     HYDROData_IPolyline.cxx
82     HYDROData_Iterator.cxx
83     HYDROData_Lambert93.cxx
84     HYDROData_NaturalObject.cxx
85     HYDROData_Object.cxx
86     HYDROData_Obstacle.cxx
87     HYDROData_ObstacleAltitude.cxx
88     HYDROData_OperationsFactory.cxx
89     HYDROData_Pipes.cxx
90     HYDROData_PolylineXY.cxx
91     HYDROData_Polyline3D.cxx
92     HYDROData_PriorityQueue.cxx
93     HYDROData_Profile.cxx
94     HYDROData_ProfileUZ.cxx
95     HYDROData_Projection.cxx
96     HYDROData_Region.cxx
97     HYDROData_River.cxx
98     HYDROData_ShapesGroup.cxx
99     HYDROData_ShapesTool.cxx
100     HYDROData_SplittedShapesGroup.cxx
101     HYDROData_SplitToZonesTool.cxx
102     HYDROData_Stream.cxx
103     HYDROData_StreamAltitude.cxx
104     HYDROData_StricklerTable.cxx
105         HYDROData_LandCover.cxx
106     HYDROData_Tool.cxx
107     HYDROData_Transform.cxx
108     HYDROData_VisualState.cxx
109     HYDROData_Zone.cxx
110     HYDROData_Quadtree.cxx
111     HYDROData_QuadtreeNode.cxx
112     HYDROData_Octree.cxx
113     HYDROData_OctreeNode.cxx
114     HYDROData_GeomTool.cxx
115     HYDROData_IProfilesInterpolator.cxx
116     HYDROData_LinearInterpolator.cxx
117     HYDROData_InterpolatorsFactory.cxx
118     shapelib/dbfopen.c
119     shapelib/safileio.c
120     shapelib/shpopen.c
121     shapelib/shptree.c
122     shapelib/shputils.c
123 )
124
125 add_definitions(
126   -DHYDRODATA_EXPORTS
127   ${CAS_DEFINITIONS}
128   ${OMNIORB_DEFINITIONS}
129   ${QT_DEFINITIONS}
130 #  ${GUI_CXXFLAGS}
131   ${GUI_DEFINITIONS}
132   ${GEOM_DEFINITIONS}
133 )
134
135 include_directories(
136   ${CAS_INCLUDE_DIRS}
137   ${QT_INCLUDES}
138   ${CMAKE_CURRENT_SOURCE_DIR}
139 #  ${GUI_ROOT_DIR}/include/salome
140   ${GUI_INCLUDE_DIRS}
141 )
142
143 add_library(HYDROData SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
144 target_link_libraries(HYDROData ${GEOM_GEOMUtils} ${CAS_OCAF} ${CAS_OCAFVIS} ${CAS_TKG3d} ${CAS_TKGeomBase} ${CAS_TKGeomAlgo}
145                       ${CAS_TKBrep} ${CAS_TKIGES} ${CAS_TKSTEP} ${CAS_TKTopAlgo} ${CAS_TKBO} ${CAS_TKBool} ${CAS_TKOffset}
146                       ${QT_LIBRARIES} ${GUI_ImageComposer} ${CAS_TKHLR} ${GEOM_GEOM} ${GEOM_GEOMBase} )
147 INSTALL(TARGETS HYDROData EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
148
149 set(PROJECT_LIBRARIES HYDROData)
150
151 # tests
152 if(SALOME_BUILD_TESTS)
153
154   set(TEST_HEADERS 
155     test_HYDROData_Bathymetry.h
156     test_HYDROData_BSplineOperation.h
157     test_HYDROData_CalculationCase.h
158     test_HYDROData_Document.h
159     test_HYDROData_Entity.h
160     test_HYDROData_Image.h
161     test_HYDROData_Iterator.h
162     test_HYDROData_OperationsFactory.h
163     test_HYDROData_PolylineXY.h
164     test_HYDROData_StricklerTable.h
165   )
166
167   set(TEST_SOURCES 
168     test_HYDROData_Main.cxx
169     test_HYDROData_Bathymetry.cxx
170     test_HYDROData_BSplineOperation.cxx
171     test_HYDROData_CalculationCase.cxx
172     test_HYDROData_Document.cxx
173     test_HYDROData_Entity.cxx
174     test_HYDROData_Image.cxx
175     test_HYDROData_Iterator.cxx
176     test_HYDROData_OperationsFactory.cxx
177     test_HYDROData_PolylineXY.cxx
178     test_HYDROData_StricklerTable.cxx
179   )
180   
181   set(TEST_EXE test_HYDROData)
182   include(../../CMake/CPPUnitTests.cmake)
183   target_link_libraries(test_HYDROData ${CAS_OCAF} ${CAS_MODELER} ${QT_LIBRARIES} ${CPPUNIT_LIBRARIES} HYDROData)
184
185 endif(SALOME_BUILD_TESTS)
186
187 #include(../../CMake/CommonInstall.cmake)