Salome HOME
69a3994a455258eb38c8050b6a95e6aa76a89974
[modules/hydro.git] / src / HYDROCurveCreator / CMakeLists.txt
1
2 include(../../CMake/Common.cmake)
3 include(../../CMake/UseQT4EXT.cmake)
4
5 # --- options ---
6
7 # additional include directories
8 INCLUDE_DIRECTORIES(
9   ${QT_INCLUDE_DIRS}
10   ${PTHREAD_INCLUDE_DIR}
11   ${CAS_INCLUDE_DIRS}
12   ${KERNEL_INCLUDE_DIRS}
13   ${GEOM_ROOT_DIR}/include/salome
14   ${GUI_ROOT_DIR}/include/salome
15 )
16
17 # additional preprocessor / compiler flags
18 ADD_DEFINITIONS(
19   -DCURVECREATOR_EXPORTS
20   ${CAS_DEFINITIONS}
21   ${QT_DEFINITIONS}
22 )
23
24 # libraries to link to
25 SET(_link_LIBRARIES
26   ${GEOM_GEOMUtils}
27   ${GUI_qtx}
28   ${GUI_suit}
29   ${GUI_OCCViewer}
30 )
31
32 # --- headers ---
33
34 # header files / to be processed by moc
35 SET(_moc_HEADERS
36     CurveCreator_NewSectionDlg.h
37     CurveCreator_TreeView.h
38 #    CurveCreator_UndoOptsDlg.h
39     CurveCreator_Widget.h
40 )
41
42 # header files / no processing
43 SET(_other_HEADERS
44   CurveCreator.hxx
45   CurveCreator_Curve.hxx
46   CurveCreator_Diff.hxx
47   CurveCreator_ICurve.hxx
48   CurveCreator_Listener.hxx
49   CurveCreator_Macro.hxx
50   CurveCreator_Operation.hxx
51   CurveCreator_Section.hxx
52 )
53
54 # header files / to install
55 SET(CurveCreator_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
56
57 # --- sources ---
58
59 # sources / moc wrappings
60 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
61
62 # sources / static
63 SET(_other_SOURCES
64   CurveCreator_Curve.cxx
65   CurveCreator_Diff.cxx
66   CurveCreator_Operation.cxx
67 )
68
69 LIST(APPEND _other_SOURCES
70     CurveCreator_NewSectionDlg.cxx
71     CurveCreator_TreeView.cxx
72 #    CurveCreator_UndoOptsDlg.cxx
73     CurveCreator_Widget.cxx
74   )
75
76 # sources / to compile
77 SET(CurveCreator_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
78
79 # --- rules ---
80
81 ADD_LIBRARY(HYDROCurveCreator SHARED ${CurveCreator_SOURCES} ${CurveCreator_HEADERS})
82 TARGET_LINK_LIBRARIES(HYDROCurveCreator ${_link_LIBRARIES})
83
84 set(PROJECT_HEADERS ${CurveCreator_SOURCES})
85 set(PROJECT_LIBRARIES HYDROCurveCreator)
86
87 include(../../CMake/CommonInstall.cmake)