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
24 # additional include directories
28 ${PROJECT_SOURCE_DIR}/src/Qtx
29 ${PROJECT_SOURCE_DIR}/src/SUIT
31 IF(SALOME_USE_PYCONSOLE)
32 INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIRS})
35 # additional preprocessor / compiler flags
36 ADD_DEFINITIONS(${QT_DEFINITIONS} ${QWT_DEFINITIONS} ${PYTHON_DEFINITIONS})
37 IF(SALOME_USE_PYCONSOLE)
38 ADD_DEFINITIONS(${PYTHON_DEFINITIONS})
41 # libraries to link to
42 SET(_link_LIBRARIES ${QT_LIBRARIES} ${QWT_LIBRARY} qtx suit)
43 IF(SALOME_USE_PYCONSOLE)
44 LIST(APPEND _link_LIBRARIES ${PYTHON_LIBRARIES})
49 # header files / to be processed by moc
53 Plot2d_NormalizeAlgorithm.h
54 Plot2d_SetupCurveDlg.h
55 Plot2d_SetupCurveScaleDlg.h
63 IF(SALOME_USE_PYCONSOLE)
64 LIST(APPEND _moc_HEADERS
65 Plot2d_AnalyticalCurveDlg.h
69 # header files / no moc processing
78 IF(SALOME_USE_PYCONSOLE)
79 LIST(APPEND _other_HEADERS
80 Plot2d_AnalyticalCurve.h
81 Plot2d_AnalyticalParser.h
85 # header files / to install
86 SET(Plot2d_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
90 # resource files / to be processed by lrelease
92 resources/Plot2d_images.ts
93 resources/Plot2d_msg_en.ts
94 resources/Plot2d_msg_fr.ts
95 resources/Plot2d_msg_ja.ts
98 # resource files / static
100 resources/plot2d_analytical_curve.png
101 resources/plot2d_camera_dump.png
102 resources/plot2d_clone.png
103 resources/plot2d_fitall.png
104 resources/plot2d_fitarea.png
105 resources/plot2d_glpan.png
106 resources/plot2d_legend.png
107 resources/plot2d_linear.png
108 resources/plot2d_linear_y.png
109 resources/plot2d_lines.png
110 resources/plot2d_lmax_normalization.png
111 resources/plot2d_lmin_normalization.png
112 resources/plot2d_log.png
113 resources/plot2d_log_y.png
114 resources/plot2d_pan.png
115 resources/plot2d_points.png
116 resources/plot2d_print.png
117 resources/plot2d_rmax_normalization.png
118 resources/plot2d_rmin_normalization.png
119 resources/plot2d_settings.png
120 resources/plot2d_splines.png
121 resources/plot2d_zoom.png
126 # sources / moc wrappings
127 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
134 Plot2d_FitDataDlg.cxx
136 Plot2d_NormalizeAlgorithm.cxx
140 Plot2d_SetupCurveDlg.cxx
141 Plot2d_SetupCurveScaleDlg.cxx
142 Plot2d_SetupViewDlg.cxx
145 Plot2d_ViewManager.cxx
147 Plot2d_ViewWindow.cxx
149 IF(SALOME_USE_PYCONSOLE)
150 LIST(APPEND _other_SOURCES
151 Plot2d_AnalyticalCurve.cxx
152 Plot2d_AnalyticalCurveDlg.cxx
153 Plot2d_AnalyticalParser.cxx
157 # sources / to compile
158 SET(Plot2d_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
162 ADD_LIBRARY(Plot2d ${Plot2d_SOURCES})
163 TARGET_LINK_LIBRARIES(Plot2d ${_link_LIBRARIES})
164 INSTALL(TARGETS Plot2d EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
166 INSTALL(FILES ${Plot2d_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
167 QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
169 INSTALL(FILES ${_other_RESOURCES} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})