Salome HOME
5b29efdf76e0ce6ec45a73b2064384ebbdc39b37
[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_INCLUDES}
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   ${QT_LIBRARIES}
27   ${qtx}
28   ${suit}
29   ${OCCViewer}
30   ${GEOM_GEOMUtils}
31   ${CAS_TKV3d} ${CAS_TKBRep} ${CAS_TKService}
32 )
33
34 # --- headers ---
35
36 # header files / to be processed by moc
37 SET(_moc_HEADERS
38     CurveCreator_NewSectionDlg.h
39     CurveCreator_TreeView.h
40 #    CurveCreator_UndoOptsDlg.h
41     CurveCreator_Widget.h
42 )
43
44 # header files / no processing
45 SET(_other_HEADERS
46   CurveCreator.hxx
47   CurveCreator_Curve.hxx
48   CurveCreator_Diff.hxx
49   CurveCreator_ICurve.hxx
50   CurveCreator_Listener.hxx
51   CurveCreator_Macro.hxx
52   CurveCreator_Operation.hxx
53   CurveCreator_Section.hxx
54 )
55
56 # header files / to install
57 SET(CurveCreator_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
58
59 # --- sources ---
60
61 # sources / moc wrappings
62 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
63
64 # sources / static
65 SET(_other_SOURCES
66   CurveCreator_Curve.cxx
67   CurveCreator_Diff.cxx
68   CurveCreator_Operation.cxx
69 )
70
71 LIST(APPEND _other_SOURCES
72     CurveCreator_NewSectionDlg.cxx
73     CurveCreator_TreeView.cxx
74 #    CurveCreator_UndoOptsDlg.cxx
75     CurveCreator_Widget.cxx
76   )
77
78 # sources / to compile
79 SET(CurveCreator_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
80
81 # --- rules ---
82
83 ADD_LIBRARY(HYDROCurveCreator SHARED ${CurveCreator_SOURCES} ${CurveCreator_HEADERS})
84 TARGET_LINK_LIBRARIES(HYDROCurveCreator ${_link_LIBRARIES})
85
86 set(PROJECT_HEADERS ${CurveCreator_SOURCES})
87 set(PROJECT_LIBRARIES HYDROCurveCreator)
88
89 include(../../CMake/CommonInstall.cmake)