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