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