Salome HOME
Additional fix for the "0021793: [CEA 625] Clipping : from coordinates
[modules/gui.git] / src / Qtx / CMakeLists.txt
1 # Copyright (C) 2012-2014  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(UseQt4Ext)
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   QtxWebBrowser.h
79   QtxWorkspace.h
80   QtxWorkspaceAction.h
81   QtxWorkstack.h
82   QtxWorkstackAction.h
83 )
84
85 # obsolete files: not migrated to Qt4
86 # _moc_HEADERS << QtxListBox.h QtxTable.h
87 # TODO: migrate or remove?
88
89 # header files / no moc processing
90 SET(_other_HEADERS
91   Qtx.h
92   QtxEvalExpr.h
93   QtxMap.h
94   QtxPreferenceMgr.h
95   QtxResourceMgr.h
96   QtxTranslator.h
97 )
98
99 # header files / to install
100 SET(qtx_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
101
102 # --- resources ---
103
104 # resource files / to be processed by rcc
105 SET(_rcc_RESOURCES Qtx.qrc)
106
107 # resource files / to be processed by lrelease
108 SET(_ts_RESOURCES resources/Qtx_msg_fr.ts)
109
110 # --- sources ---
111
112 # sources / rcc wrappings
113 QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
114
115 # sources / moc wrappings
116 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
117
118 # sources / static
119 SET(_other_SOURCES
120   Qtx.cxx
121   QtxAction.cxx
122   QtxActionGroup.cxx
123   QtxActionMenuMgr.cxx
124   QtxActionMgr.cxx
125   QtxActionSet.cxx
126   QtxActionToolMgr.cxx
127   QtxBackgroundTool.cxx
128   QtxBiColorTool.cxx
129   QtxColorButton.cxx
130   QtxColorScale.cxx
131   QtxComboBox.cxx
132   QtxDialog.cxx
133   QtxDockAction.cxx
134   QtxDockWidget.cxx
135   QtxDoubleSpinBox.cxx
136   QtxDoubleSpinSlider.cxx
137   QtxEvalExpr.cxx
138   QtxFontEdit.cxx
139   QtxGridBox.cxx
140   QtxGroupBox.cxx
141   QtxIntSpinBox.cxx
142   QtxIntSpinSlider.cxx
143   QtxListAction.cxx
144   QtxLogoMgr.cxx
145   QtxMRUAction.cxx
146   QtxMainWindow.cxx
147   QtxMenu.cxx
148   QtxMultiAction.cxx
149   QtxPagePrefMgr.cxx
150   QtxPathDialog.cxx
151   QtxPathEdit.cxx
152   QtxPathListEdit.cxx
153   QtxPopupMgr.cxx
154   QtxPreferenceMgr.cxx
155   QtxResourceMgr.cxx
156   QtxRubberBand.cxx
157   QtxSearchTool.cxx
158   QtxShortcutEdit.cxx
159   QtxSlider.cxx
160   QtxSplash.cxx
161   QtxToolBar.cxx
162   QtxToolTip.cxx
163   QtxTranslator.cxx
164   QtxTreeView.cxx
165   QtxValidator.cxx
166   QtxWebBrowser.cxx
167   QtxWorkspace.cxx
168   QtxWorkspaceAction.cxx
169   QtxWorkstack.cxx
170   QtxWorkstackAction.cxx
171 )
172
173 # obsolete files: not migrated to Qt4
174 # _other_SOURCES << QtxListBox.cxx QtxTable.cxx
175 # TODO: migrate or remove?
176
177 # sources / to compile
178 SET(qtx_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_rcc_SOURCES})
179
180 # --- rules ---
181
182 ADD_LIBRARY(qtx ${qtx_SOURCES})
183 TARGET_LINK_LIBRARIES(qtx ${_link_LIBRARIES})
184 INSTALL(TARGETS qtx EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
185
186 INSTALL(FILES ${qtx_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
187 QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")