Salome HOME
0caedd7b702a4918ebf89f49c5de309ae2503676
[modules/gui.git] / src / Qtx / CMakeLists.txt
1 # Copyright (C) 2012-2013  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.
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 INCLUDE_DIRECTORIES(
23   ${QT_INCLUDES}
24 )
25
26
27
28 SET(GUI_HEADERS   
29   QtxAction.h
30   QtxActionGroup.h
31   QtxActionMenuMgr.h
32   QtxActionMgr.h
33   QtxActionSet.h
34   QtxActionToolMgr.h
35   QtxBackgroundTool.h
36   QtxBiColorTool.h
37   QtxColorButton.h
38   QtxColorScale.h
39   QtxComboBox.h
40   QtxDialog.h
41   QtxDockAction.h
42   QtxDockWidget.h
43   QtxDoubleSpinBox.h
44   QtxFontEdit.h
45   QtxGridBox.h
46   QtxGroupBox.h
47   QtxIntSpinBox.h
48   QtxListAction.h
49   QtxTreeView.h
50   QtxLogoMgr.h
51   QtxMainWindow.h
52   QtxMenu.h
53   QtxMultiAction.h
54   QtxMRUAction.h
55   QtxPagePrefMgr.h
56   QtxPathDialog.h
57   QtxPathEdit.h
58   QtxPathListEdit.h
59   QtxPopupMgr.h
60   QtxRubberBand.h
61   QtxSearchTool.h
62   QtxShortcutEdit.h
63   QtxSplash.h
64   QtxToolBar.h
65   QtxToolTip.h
66   QtxValidator.h
67   QtxWorkspace.h
68   QtxWorkspaceAction.h
69   QtxWorkstack.h
70   QtxWorkstackAction.h
71   QtxWebBrowser.h
72 )
73 QT4_WRAP_CPP(GUI_HEADERS_MOC ${GUI_HEADERS})
74
75 SET(RCCS Qtx.qrc)
76 QT4_ADD_RESOURCES(RCC_SRCS ${RCCS})
77
78 SET(qtx_SOURCES
79   Qtx.cxx
80   QtxAction.cxx
81   QtxActionGroup.cxx
82   QtxActionMenuMgr.cxx
83   QtxActionMgr.cxx
84   QtxActionSet.cxx
85   QtxActionToolMgr.cxx
86   QtxBackgroundTool.cxx
87   QtxBiColorTool.cxx
88   QtxColorButton.cxx
89   QtxColorScale.cxx
90   QtxComboBox.cxx
91   QtxDialog.cxx
92   QtxDockAction.cxx
93   QtxDockWidget.cxx
94   QtxDoubleSpinBox.cxx
95   QtxEvalExpr.cxx
96   QtxFontEdit.cxx
97   QtxGridBox.cxx
98   QtxGroupBox.cxx
99   QtxIntSpinBox.cxx
100   QtxListAction.cxx
101   QtxTreeView.cxx
102   QtxLogoMgr.cxx
103   QtxMainWindow.cxx
104   QtxMenu.cxx
105   QtxMultiAction.cxx
106   QtxMRUAction.cxx
107   QtxPagePrefMgr.cxx
108   QtxPathDialog.cxx
109   QtxPathEdit.cxx
110   QtxPathListEdit.cxx
111   QtxPopupMgr.cxx
112   QtxPreferenceMgr.cxx
113   QtxResourceMgr.cxx
114   QtxRubberBand.cxx
115   QtxSearchTool.cxx
116   QtxShortcutEdit.cxx
117   QtxSplash.cxx
118   QtxToolBar.cxx
119   QtxToolTip.cxx
120   QtxTranslator.cxx
121   QtxValidator.cxx
122   QtxWorkspace.cxx
123   QtxWorkspaceAction.cxx
124   QtxWorkstack.cxx
125   QtxWorkstackAction.cxx
126   QtxWebBrowser.cxx
127 )
128 SET(GUITS_SOURCES
129   resources/Qtx_msg_fr.ts
130 )
131
132 ADD_DEFINITIONS(${QT_DEFINITIONS})
133 ADD_LIBRARY(qtx ${qtx_SOURCES} ${GUI_HEADERS_MOC} ${RCC_SRCS})
134 TARGET_LINK_LIBRARIES(qtx ${QT_LIBRARIES} ${OPENGL_LIBRARIES})
135 INSTALL(TARGETS qtx EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
136
137 SET(COMMON_HEADERS_H
138   Qtx.h
139   QtxAction.h
140   QtxActionGroup.h
141   QtxActionMenuMgr.h
142   QtxActionMgr.h
143   QtxActionSet.h
144   QtxActionToolMgr.h
145   QtxBackgroundTool.h
146   QtxBiColorTool.h
147   QtxColorButton.h
148   QtxColorScale.h
149   QtxComboBox.h
150   QtxDialog.h
151   QtxDockAction.h
152   QtxDockWidget.h
153   QtxDoubleSpinBox.h
154   QtxEvalExpr.h
155   QtxFontEdit.h
156   QtxGridBox.h
157   QtxGroupBox.h
158   QtxIntSpinBox.h
159   QtxListAction.h
160   QtxTreeView.h
161   QtxLogoMgr.h
162   QtxMainWindow.h
163   QtxMap.h
164   QtxMenu.h
165   QtxMultiAction.h
166   QtxMRUAction.h
167   QtxPagePrefMgr.h
168   QtxPathDialog.h
169   QtxPathEdit.h
170   QtxPathListEdit.h
171   QtxPopupMgr.h
172   QtxPreferenceMgr.h
173   QtxResourceMgr.h
174   QtxRubberBand.h
175   QtxSearchTool.h
176   QtxShortcutEdit.h
177   QtxSplash.h
178   QtxToolBar.h
179   QtxToolTip.h
180   QtxTranslator.h
181   QtxValidator.h
182   QtxWorkspace.h
183   QtxWorkspaceAction.h
184   QtxWorkstack.h
185   QtxWorkstackAction.h
186   QtxWebBrowser.h
187 )
188 INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${SALOME_INSTALL_HEADERS})
189 QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")