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