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