1 # Copyright (C) 2012-2015 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, 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
24 # additional include directories
28 ${PYTHON_INCLUDE_DIRS}
29 ${PROJECT_SOURCE_DIR}/src/Qtx
30 ${PROJECT_SOURCE_DIR}/src/SUIT
33 # additional preprocessor / compiler flags
34 ADD_DEFINITIONS(${QT_DEFINITIONS} ${QWT_DEFINITIONS} ${PYTHON_DEFINITIONS})
36 # libraries to link to
37 SET(_link_LIBRARIES ${QT_LIBRARIES} ${QWT_LIBRARY} ${PYTHON_LIBRARIES} qtx suit)
41 # header files / to be processed by moc
45 Plot2d_NormalizeAlgorithm.h
46 Plot2d_SetupCurveDlg.h
47 Plot2d_SetupCurveScaleDlg.h
54 Plot2d_AnalyticalCurveDlg.h
57 # header files / no moc processing
65 Plot2d_AnalyticalCurve.h
66 Plot2d_AnalyticalParser.h
69 # header files / to install
70 SET(Plot2d_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
74 # resource files / to be processed by lrelease
76 resources/Plot2d_images.ts
77 resources/Plot2d_msg_en.ts
78 resources/Plot2d_msg_fr.ts
79 resources/Plot2d_msg_ja.ts
82 # resource files / static
84 resources/plot2d_analytical_curve.png
85 resources/plot2d_camera_dump.png
86 resources/plot2d_clone.png
87 resources/plot2d_fitall.png
88 resources/plot2d_fitarea.png
89 resources/plot2d_glpan.png
90 resources/plot2d_legend.png
91 resources/plot2d_linear.png
92 resources/plot2d_linear_y.png
93 resources/plot2d_lines.png
94 resources/plot2d_lmax_normalization.png
95 resources/plot2d_lmin_normalization.png
96 resources/plot2d_log.png
97 resources/plot2d_log_y.png
98 resources/plot2d_pan.png
99 resources/plot2d_points.png
100 resources/plot2d_print.png
101 resources/plot2d_rmax_normalization.png
102 resources/plot2d_rmin_normalization.png
103 resources/plot2d_settings.png
104 resources/plot2d_splines.png
105 resources/plot2d_zoom.png
110 # sources / moc wrappings
111 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
118 Plot2d_FitDataDlg.cxx
120 Plot2d_NormalizeAlgorithm.cxx
124 Plot2d_SetupCurveDlg.cxx
125 Plot2d_SetupCurveScaleDlg.cxx
126 Plot2d_SetupViewDlg.cxx
129 Plot2d_ViewManager.cxx
131 Plot2d_ViewWindow.cxx
132 Plot2d_AnalyticalCurve.cxx
133 Plot2d_AnalyticalCurveDlg.cxx
134 Plot2d_AnalyticalParser.cxx
137 # sources / to compile
138 SET(Plot2d_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
142 ADD_LIBRARY(Plot2d ${Plot2d_SOURCES})
143 TARGET_LINK_LIBRARIES(Plot2d ${_link_LIBRARIES})
144 INSTALL(TARGETS Plot2d EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
146 INSTALL(FILES ${Plot2d_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
147 QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
149 INSTALL(FILES ${_other_RESOURCES} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})