]> SALOME platform Git repositories - modules/gui.git/blob - src/Qtx/CMakeLists.txt
Salome HOME
Merge remote-tracking branch 'origin/rnv/vtk_opengl2_backend' into V8_1_BR
[modules/gui.git] / src / Qtx / CMakeLists.txt
1 # Copyright (C) 2012-2016  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(${QT_INCLUDES})
26
27 # additional preprocessor / compiler flags
28 ADD_DEFINITIONS(${QT_DEFINITIONS})
29
30 # libraries to link to
31 SET(_link_LIBRARIES ${QT_LIBRARIES} ${OPENGL_LIBRARIES})
32
33 # --- headers ---
34
35 # header files / to be processed by moc
36 SET(_moc_HEADERS   
37   QtxAction.h
38   QtxActionGroup.h
39   QtxActionMenuMgr.h
40   QtxActionMgr.h
41   QtxActionSet.h
42   QtxActionToolMgr.h
43   QtxBackgroundTool.h
44   QtxBiColorTool.h
45   QtxColorButton.h
46   QtxColorScale.h
47   QtxComboBox.h
48   QtxDialog.h
49   QtxDockAction.h
50   QtxDockWidget.h
51   QtxDoubleSpinBox.h
52   QtxDoubleSpinSlider.h
53   QtxFontEdit.h
54   QtxGridBox.h
55   QtxGroupBox.h
56   QtxIntSpinBox.h
57   QtxIntSpinSlider.h
58   QtxListAction.h
59   QtxLogoMgr.h
60   QtxMRUAction.h
61   QtxMainWindow.h
62   QtxMenu.h
63   QtxMultiAction.h
64   QtxPagePrefMgr.h
65   QtxPathDialog.h
66   QtxPathEdit.h
67   QtxPathListEdit.h
68   QtxPopupMgr.h
69   QtxRubberBand.h
70   QtxSearchTool.h
71   QtxShortcutEdit.h
72   QtxSlider.h
73   QtxSplash.h
74   QtxToolBar.h
75   QtxToolTip.h
76   QtxTreeView.h
77   QtxValidator.h
78   QtxWorkspace.h
79   QtxWorkspaceAction.h
80   QtxWorkstack.h
81   QtxWorkstackAction.h
82 )
83
84 IF(SALOME_GUI_ENABLE_QTXWEBBROWSER)
85   SET(_moc_HEADERS ${_moc_HEADERS}  QtxWebBrowser.h)
86 ENDIF()
87
88 # obsolete files: not migrated to Qt4
89 # _moc_HEADERS << QtxListBox.h QtxTable.h
90 # TODO: migrate or remove?
91
92 # header files / no moc processing
93 SET(_other_HEADERS
94   Qtx.h
95   QtxEvalExpr.h
96   QtxMap.h
97   QtxPreferenceMgr.h
98   QtxResourceMgr.h
99   QtxTranslator.h
100 )
101
102 # header files / to install
103 SET(qtx_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
104
105 # --- resources ---
106
107 # resource files / to be processed by rcc
108 SET(_rcc_RESOURCES Qtx.qrc)
109
110 # resource files / to be processed by lrelease
111 SET(_ts_RESOURCES resources/Qtx_msg_fr.ts
112                   resources/Qtx_msg_ja.ts
113 )
114
115 # --- sources ---
116
117 # sources / moc wrappings
118 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
119
120 # sources / rcc wrappings
121 QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
122
123 # sources / static
124 SET(_other_SOURCES
125   Qtx.cxx
126   QtxAction.cxx
127   QtxActionGroup.cxx
128   QtxActionMenuMgr.cxx
129   QtxActionMgr.cxx
130   QtxActionSet.cxx
131   QtxActionToolMgr.cxx
132   QtxBackgroundTool.cxx
133   QtxBiColorTool.cxx
134   QtxColorButton.cxx
135   QtxColorScale.cxx
136   QtxComboBox.cxx
137   QtxDialog.cxx
138   QtxDockAction.cxx
139   QtxDockWidget.cxx
140   QtxDoubleSpinBox.cxx
141   QtxDoubleSpinSlider.cxx
142   QtxEvalExpr.cxx
143   QtxFontEdit.cxx
144   QtxGridBox.cxx
145   QtxGroupBox.cxx
146   QtxIntSpinBox.cxx
147   QtxIntSpinSlider.cxx
148   QtxListAction.cxx
149   QtxLogoMgr.cxx
150   QtxMRUAction.cxx
151   QtxMainWindow.cxx
152   QtxMenu.cxx
153   QtxMultiAction.cxx
154   QtxPagePrefMgr.cxx
155   QtxPathDialog.cxx
156   QtxPathEdit.cxx
157   QtxPathListEdit.cxx
158   QtxPopupMgr.cxx
159   QtxPreferenceMgr.cxx
160   QtxResourceMgr.cxx
161   QtxRubberBand.cxx
162   QtxSearchTool.cxx
163   QtxShortcutEdit.cxx
164   QtxSlider.cxx
165   QtxSplash.cxx
166   QtxToolBar.cxx
167   QtxToolTip.cxx
168   QtxTranslator.cxx
169   QtxTreeView.cxx
170   QtxValidator.cxx
171   QtxWorkspace.cxx
172   QtxWorkspaceAction.cxx
173   QtxWorkstack.cxx
174   QtxWorkstackAction.cxx
175 )
176
177 IF(SALOME_GUI_ENABLE_QTXWEBBROWSER)
178   SET(_other_SOURCES ${_other_SOURCES}  QtxWebBrowser.cxx)
179 ENDIF()
180
181 # obsolete files: not migrated to Qt4
182 # _other_SOURCES << QtxListBox.cxx QtxTable.cxx
183 # TODO: migrate or remove?
184
185 # sources / to compile
186 SET(qtx_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_rcc_SOURCES})
187
188 # --- rules ---
189
190 ADD_LIBRARY(qtx ${qtx_SOURCES})
191 TARGET_LINK_LIBRARIES(qtx ${_link_LIBRARIES})
192 INSTALL(TARGETS qtx EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
193
194 INSTALL(FILES ${qtx_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
195 QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")