1 # Copyright (C) 2012-2023 CEA, EDF, 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, or (at your option) any later version.
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
22 ENDIF(SALOME_BUILD_GUI)
26 # additional include directories
28 ${PTHREAD_INCLUDE_DIR}
29 ${OpenCASCADE_INCLUDE_DIR}
30 ${KERNEL_INCLUDE_DIRS}
32 ${PROJECT_SOURCE_DIR}/src/GEOMUtils
35 # additional preprocessor / compiler flags
37 ${OpenCASCADE_DEFINITIONS}
41 # libraries to link to
46 LIST(APPEND _link_LIBRARIES
51 ENDIF(SALOME_BUILD_GUI)
56 # header files / to be processed by moc
58 CurveCreator_NewSectionDlg.h
59 CurveCreator_TableView.h
60 CurveCreator_TreeView.h
63 ENDIF(SALOME_BUILD_GUI)
65 # header files / no processing
68 CurveCreator_Curve.hxx
69 CurveCreator_ShapeFilter.hxx
71 CurveCreator_Displayer.hxx
72 CurveCreator_ICurve.hxx
73 CurveCreator_Macro.hxx
74 CurveCreator_Operation.hxx
75 CurveCreator_PosPoint.hxx
76 CurveCreator_Section.hxx
77 CurveCreator_UtilsICurve.hxx
78 CurveCreator_Utils.hxx
81 # header files / to install
82 SET(CurveCreator_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
87 # sources / moc wrappings
88 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
89 ENDIF(SALOME_BUILD_GUI)
93 CurveCreator_Curve.cxx
95 CurveCreator_Displayer.cxx
96 CurveCreator_ShapeFilter.cxx
97 CurveCreator_Operation.cxx
98 CurveCreator_Section.cxx
99 CurveCreator_Utils.cxx
100 CurveCreator_UtilsICurve.cxx
103 LIST(APPEND _other_SOURCES
104 CurveCreator_NewSectionDlg.cxx
105 CurveCreator_TableView.cxx
106 CurveCreator_TreeView.cxx
107 CurveCreator_Widget.cxx
109 ENDIF(SALOME_BUILD_GUI)
111 # sources / to compile
112 SET(CurveCreator_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
116 ADD_LIBRARY(CurveCreator ${CurveCreator_SOURCES})
117 TARGET_LINK_LIBRARIES(CurveCreator ${_link_LIBRARIES})
118 INSTALL(TARGETS CurveCreator EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
120 INSTALL(FILES ${CurveCreator_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})