]> SALOME platform Git repositories - modules/hydro.git/blob - src/HYDROData/CMakeLists.txt
Salome HOME
Splitting data for calculation case edges (Feature #242).
[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_EdgesGroup.h
17     HYDROData_Entity.h
18     HYDROData_IAltitudeObject.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_OperationsFactory.h
28     HYDROData_PolylineXY.h
29     HYDROData_Polyline3D.h
30     HYDROData_Profile.h
31     HYDROData_ProfileUZ.h
32     HYDROData_Projection.h
33     HYDROData_Region.h
34     HYDROData_River.h
35     HYDROData_SplittedEdgesGroup.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_EdgesGroup.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_SplittedEdgesGroup.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   ${QT_DEFINITIONS}
86 #  ${GUI_CXXFLAGS}
87   ${GUI_DEFINITIONS}
88 )
89
90 include_directories(
91   ${CAS_INCLUDE_DIRS}
92   ${QT_INCLUDES}
93   ${CMAKE_CURRENT_SOURCE_DIR}
94 #  ${GUI_ROOT_DIR}/include/salome
95   ${GUI_INCLUDE_DIRS}
96 )
97
98 add_library(HYDROData SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
99 target_link_libraries(HYDROData ${GEOM_GEOMUtils} ${CAS_OCAF} ${CAS_OCAFVIS} ${CAS_TKG3d} ${CAS_TKGeomBase} ${CAS_TKGeomAlgo}
100                       ${CAS_TKBrep} ${CAS_TKIGES} ${CAS_TKSTEP} ${CAS_TKTopAlgo} ${CAS_TKBO} ${CAS_TKBool} ${CAS_TKOffset}
101                       ${QT_LIBRARIES} ${GUI_ImageComposer} ${CAS_TKHLR} )
102 INSTALL(TARGETS HYDROData EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
103
104 set(PROJECT_LIBRARIES HYDROData)
105
106 # tests
107 if(SALOME_BUILD_TESTS)
108
109   set(TEST_HEADERS 
110     test_HYDROData_Bathymetry.h
111     test_HYDROData_BSplineOperation.h
112     test_HYDROData_CalculationCase.h
113     test_HYDROData_Document.h
114     test_HYDROData_Entity.h
115     test_HYDROData_Image.h
116     test_HYDROData_Iterator.h
117     test_HYDROData_OperationsFactory.h
118     test_HYDROData_PolylineXY.h
119   )
120
121   set(TEST_SOURCES 
122     test_HYDROData_Main.cxx
123     test_HYDROData_Bathymetry.cxx
124     test_HYDROData_BSplineOperation.cxx
125     test_HYDROData_CalculationCase.cxx
126     test_HYDROData_Document.cxx
127     test_HYDROData_Entity.cxx
128     test_HYDROData_Image.cxx
129     test_HYDROData_Iterator.cxx
130     test_HYDROData_OperationsFactory.cxx
131     test_HYDROData_PolylineXY.cxx
132   )
133   
134   set(TEST_EXE test_HYDROData)
135   include(../../CMake/CPPUnitTests.cmake)
136   target_link_libraries(test_HYDROData ${CAS_OCAF} ${CAS_MODELER} ${QT_LIBRARIES} ${CPPUNIT_LIBRARIES} HYDROData)
137
138 endif(SALOME_BUILD_TESTS)
139
140 #include(../../CMake/CommonInstall.cmake)