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