]> SALOME platform Git repositories - modules/hydro.git/blob - src/HYDROData/CMakeLists.txt
Salome HOME
Groups has been changed from edges to shapes storing
[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_Image.h
19     HYDROData_ImmersibleZone.h
20     HYDROData_IPolyline.h
21     HYDROData_Iterator.h
22     HYDROData_Lambert93.h
23     HYDROData_NaturalObject.h
24     HYDROData_Object.h
25     HYDROData_Obstacle.h
26     HYDROData_OperationsFactory.h
27     HYDROData_PolylineXY.h
28     HYDROData_Polyline3D.h
29     HYDROData_Profile.h
30     HYDROData_ProfileUZ.h
31     HYDROData_Projection.h
32     HYDROData_Region.h
33     HYDROData_River.h
34     HYDROData_ShapesGroup.h
35     HYDROData_SplittedShapesGroup.h
36     HYDROData_SplitToZonesTool.h
37     HYDROData_Stream.h
38     HYDROData_Tool.h
39     HYDROData_VisualState.h
40     HYDROData_Zone.h
41 )
42
43 set(PROJECT_SOURCES 
44     HYDROData_AltitudeObject.cxx
45     HYDROData_Application.cxx
46     HYDROData_ArtificialObject.cxx
47     HYDROData_Bathymetry.cxx
48     HYDROData_BSplineOperation.cxx
49     HYDROData_CalculationCase.cxx
50     HYDROData_Channel.cxx
51     HYDROData_Confluence.cxx
52     HYDROData_Digue.cxx
53     HYDROData_Document.cxx
54     HYDROData_DummyObject3D.cxx
55     HYDROData_Entity.cxx
56     HYDROData_IAltitudeObject.cxx
57     HYDROData_Image.cxx
58     HYDROData_ImmersibleZone.cxx
59     HYDROData_IPolyline.cxx
60     HYDROData_Iterator.cxx
61     HYDROData_Lambert93.cxx
62     HYDROData_NaturalObject.cxx
63     HYDROData_Object.cxx
64     HYDROData_Obstacle.cxx
65     HYDROData_OperationsFactory.cxx
66     HYDROData_PolylineXY.cxx
67     HYDROData_Polyline3D.cxx
68     HYDROData_Profile.cxx
69     HYDROData_ProfileUZ.cxx
70     HYDROData_Projection.cxx
71     HYDROData_Region.cxx
72     HYDROData_River.cxx
73     HYDROData_ShapesGroup.cxx
74     HYDROData_SplittedShapesGroup.cxx
75     HYDROData_SplitToZonesTool.cxx
76     HYDROData_Stream.cxx
77     HYDROData_Tool.cxx
78     HYDROData_VisualState.cxx
79     HYDROData_Zone.cxx
80 )
81
82 add_definitions(
83   -DHYDRODATA_EXPORTS
84   ${CAS_DEFINITIONS}
85   ${OMNIORB_DEFINITIONS}
86   ${QT_DEFINITIONS}
87 #  ${GUI_CXXFLAGS}
88   ${GUI_DEFINITIONS}
89   ${GEOM_DEFINITIONS}
90 )
91
92 include_directories(
93   ${CAS_INCLUDE_DIRS}
94   ${QT_INCLUDES}
95   ${CMAKE_CURRENT_SOURCE_DIR}
96 #  ${GUI_ROOT_DIR}/include/salome
97   ${GUI_INCLUDE_DIRS}
98 )
99
100 add_library(HYDROData SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
101 target_link_libraries(HYDROData ${GEOM_GEOMUtils} ${CAS_OCAF} ${CAS_OCAFVIS} ${CAS_TKG3d} ${CAS_TKGeomBase} ${CAS_TKGeomAlgo}
102                       ${CAS_TKBrep} ${CAS_TKIGES} ${CAS_TKSTEP} ${CAS_TKTopAlgo} ${CAS_TKBO} ${CAS_TKBool} ${CAS_TKOffset}
103                       ${QT_LIBRARIES} ${GUI_ImageComposer} ${CAS_TKHLR} ${GEOM_GEOM} ${GEOM_GEOMBase} )
104 INSTALL(TARGETS HYDROData EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
105
106 set(PROJECT_LIBRARIES HYDROData)
107
108 # tests
109 if(SALOME_BUILD_TESTS)
110
111   set(TEST_HEADERS 
112     test_HYDROData_Bathymetry.h
113     test_HYDROData_BSplineOperation.h
114     test_HYDROData_CalculationCase.h
115     test_HYDROData_Document.h
116     test_HYDROData_Entity.h
117     test_HYDROData_Image.h
118     test_HYDROData_Iterator.h
119     test_HYDROData_OperationsFactory.h
120     test_HYDROData_PolylineXY.h
121   )
122
123   set(TEST_SOURCES 
124     test_HYDROData_Main.cxx
125     test_HYDROData_Bathymetry.cxx
126     test_HYDROData_BSplineOperation.cxx
127     test_HYDROData_CalculationCase.cxx
128     test_HYDROData_Document.cxx
129     test_HYDROData_Entity.cxx
130     test_HYDROData_Image.cxx
131     test_HYDROData_Iterator.cxx
132     test_HYDROData_OperationsFactory.cxx
133     test_HYDROData_PolylineXY.cxx
134   )
135   
136   set(TEST_EXE test_HYDROData)
137   include(../../CMake/CPPUnitTests.cmake)
138   target_link_libraries(test_HYDROData ${CAS_OCAF} ${CAS_MODELER} ${QT_LIBRARIES} ${CPPUNIT_LIBRARIES} HYDROData)
139
140 endif(SALOME_BUILD_TESTS)
141
142 #include(../../CMake/CommonInstall.cmake)