Salome HOME
updated copyright message
[modules/gui.git] / src / Plot2d / CMakeLists.txt
1 # Copyright (C) 2012-2023  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 INCLUDE(UseQtExt)
21
22 # --- options ---
23
24 # additional include directories
25 INCLUDE_DIRECTORIES(
26   ${QT_INCLUDES}
27   ${QWT_INCLUDE_DIR}
28   ${PYTHON_INCLUDE_DIRS}
29   ${PROJECT_SOURCE_DIR}/src/Qtx
30   ${PROJECT_SOURCE_DIR}/src/SUIT
31 )
32
33 # additional preprocessor / compiler flags
34 ADD_DEFINITIONS(${QT_DEFINITIONS} ${QWT_DEFINITIONS} ${PYTHON_DEFINITIONS})
35
36 # libraries to link to
37 SET(_link_LIBRARIES ${QT_LIBRARIES} ${QWT_LIBRARY} ${PYTHON_LIBRARIES} qtx suit)
38
39 # --- headers ---
40
41 # header files / to be processed by moc
42 SET(_moc_HEADERS   
43   Plot2d_Algorithm.h
44   Plot2d_FitDataDlg.h
45   Plot2d_NormalizeAlgorithm.h
46   Plot2d_SetupCurveDlg.h
47   Plot2d_SetupCurveScaleDlg.h
48   Plot2d_SetupViewDlg.h
49   Plot2d_ToolTip.h
50   Plot2d_ViewFrame.h
51   Plot2d_ViewManager.h
52   Plot2d_ViewModel.h
53   Plot2d_ViewWindow.h
54   Plot2d_AnalyticalCurveDlg.h
55   )
56
57 # header files / no moc processing
58 SET(_other_HEADERS
59   Plot2d.h
60   Plot2d_Curve.h
61   Plot2d_Histogram.h
62   Plot2d_Object.h
63   Plot2d_PlotItems.h
64   Plot2d_Prs.h
65   Plot2d_AnalyticalCurve.h
66   Plot2d_AnalyticalParser.h
67   )
68
69 # header files / to install
70 SET(Plot2d_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
71
72 # --- resources ---
73
74 # resource files / to be processed by lrelease
75 SET(_ts_RESOURCES
76   resources/Plot2d_images.ts
77   resources/Plot2d_msg_en.ts
78   resources/Plot2d_msg_fr.ts
79   resources/Plot2d_msg_ja.ts
80 )
81
82 # resource files / static
83 SET(_other_RESOURCES
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
106 )
107
108 # --- sources ---
109
110 # sources / moc wrappings
111 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
112
113 # sources / static
114 SET(_other_SOURCES
115   Plot2d.cxx
116   Plot2d_Algorithm.cxx
117   Plot2d_Curve.cxx
118   Plot2d_FitDataDlg.cxx
119   Plot2d_Histogram.cxx
120   Plot2d_NormalizeAlgorithm.cxx
121   Plot2d_Object.cxx
122   Plot2d_PlotItems.cxx
123   Plot2d_Prs.cxx
124   Plot2d_SetupCurveDlg.cxx
125   Plot2d_SetupCurveScaleDlg.cxx
126   Plot2d_SetupViewDlg.cxx
127   Plot2d_ToolTip.cxx
128   Plot2d_ViewFrame.cxx
129   Plot2d_ViewManager.cxx
130   Plot2d_ViewModel.cxx
131   Plot2d_ViewWindow.cxx
132   Plot2d_AnalyticalCurve.cxx
133   Plot2d_AnalyticalCurveDlg.cxx
134   Plot2d_AnalyticalParser.cxx
135   )
136
137 # sources / to compile
138 SET(Plot2d_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
139
140 # --- rules ---
141
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})
145
146 INSTALL(FILES ${Plot2d_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
147 QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
148
149 INSTALL(FILES ${_other_RESOURCES} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})