1 # Copyright (C) 2012-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 INCLUDE(${QT_USE_FILE})
22 ENDIF(SALOME_BUILD_GUI)
26 # additional include directories
29 ${PTHREAD_INCLUDE_DIR}
31 ${KERNEL_INCLUDE_DIRS}
36 # additional preprocessor / compiler flags
38 -DCURVECREATOR_EXPORTS
43 # libraries to link to
48 LIST(APPEND _link_LIBRARIES
53 ENDIF(SALOME_BUILD_GUI)
58 # header files / to be processed by moc
60 CurveCreator_NewSectionDlg.h
61 CurveCreator_TableView.h
62 CurveCreator_TreeView.h
63 # CurveCreator_UndoOptsDlg.h
65 OCCViewer_ViewWidget.h
67 ENDIF(SALOME_BUILD_GUI)
69 # header files / no processing
72 CurveCreator_Displayer.h
73 CurveCreator_Curve.hxx
75 CurveCreator_ICurve.hxx
76 CurveCreator_Macro.hxx
77 CurveCreator_Operation.hxx
78 CurveCreator_Section.hxx
80 CurveCreator_PosPoint.hxx
83 # header files / to install
84 SET(HYDROCurveCreator_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
89 # sources / moc wrappings
90 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
91 ENDIF(SALOME_BUILD_GUI)
95 CurveCreator_Displayer.cxx
96 CurveCreator_Curve.cxx
98 CurveCreator_Operation.cxx
99 CurveCreator_Utils.cxx
102 LIST(APPEND _other_SOURCES
103 CurveCreator_NewSectionDlg.cxx
104 CurveCreator_TableView.cxx
105 CurveCreator_TreeView.cxx
106 # CurveCreator_UndoOptsDlg.cxx
107 CurveCreator_Widget.cxx
108 OCCViewer_ViewWidget.cxx
110 ENDIF(SALOME_BUILD_GUI)
112 # sources / to compile
113 SET(HYDROCurveCreator_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
117 ADD_LIBRARY(HYDROCurveCreator ${HYDROCurveCreator_SOURCES} ${HYDROCurveCreator_HEADERS})
118 TARGET_LINK_LIBRARIES(HYDROCurveCreator ${_link_LIBRARIES} ${CAS_TKGeomAlgo})
119 INSTALL(TARGETS HYDROCurveCreator EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
121 INSTALL(FILES ${HYDROCurveCreator_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})