Salome HOME
Tools class for HYDROData.
[modules/hydro.git] / src / HYDROData / CMakeLists.txt
1 include(../../CMake/Common.cmake)
2
3 set(PROJECT_HEADERS 
4     HYDROData.h
5     HYDROData_Application.h
6     HYDROData_Bathymetry.h
7     HYDROData_Document.h
8     HYDROData_Image.h
9     HYDROData_Iterator.h
10     HYDROData_Object.h
11     HYDROData_Polyline.h
12     HYDROData_VisualState.h
13 )
14
15 set(PROJECT_SOURCES 
16     HYDROData_Application.cxx
17     HYDROData_Bathymetry.cxx
18     HYDROData_Document.cxx
19     HYDROData_Image.cxx
20     HYDROData_Iterator.cxx
21     HYDROData_Object.cxx
22     HYDROData_Polyline.cxx
23     HYDROData_VisualState.cxx
24 )
25
26 add_definitions(
27   -DHYDRODATA_EXPORTS
28   ${CAS_DEFINITIONS}
29   ${QT_DEFINITIONS}
30 )
31
32 include_directories(
33   ${CAS_INCLUDE_DIRS}
34   ${QT_INCLUDES}
35   ${CMAKE_CURRENT_SOURCE_DIR}
36 )
37
38 add_library(HYDROData SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
39 target_link_libraries(HYDROData ${CAS_OCAF})
40
41 set(PROJECT_LIBRARIES HYDROData)
42
43 # tests
44 if(CPPUNIT_IS_OK)
45
46   set(TEST_HEADERS 
47     test_HYDROData_Document.h
48     test_HYDROData_Object.h
49     test_HYDROData_Iterator.h
50     test_HYDROData_Image.h
51     test_HYDROData_Polyline.h
52   )
53
54   set(TEST_SOURCES 
55     test_HYDROData_Main.cxx
56     test_HYDROData_Document.cxx
57     test_HYDROData_Object.cxx
58     test_HYDROData_Iterator.cxx
59     test_HYDROData_Image.cxx
60     test_HYDROData_Polyline.cxx
61   )
62   
63   set(TEST_EXE test_HYDROData)
64   include(../../CMake/CPPUnitTests.cmake)
65   target_link_libraries(test_HYDROData ${CAS_OCAF} ${QT_LIBRARIES} ${CPPUNIT_LIBS} HYDROData)
66   
67 endif(CPPUNIT_IS_OK)
68
69 include(../../CMake/CommonInstall.cmake)