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