Salome HOME
Merge from V6_main 01/04/2013
[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(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/UseQT4EXT.cmake)
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(qtx_SOURCES
76   Qtx.cxx
77   QtxAction.cxx
78   QtxActionGroup.cxx
79   QtxActionMenuMgr.cxx
80   QtxActionMgr.cxx
81   QtxActionSet.cxx
82   QtxActionToolMgr.cxx
83   QtxBackgroundTool.cxx
84   QtxBiColorTool.cxx
85   QtxColorButton.cxx
86   QtxColorScale.cxx
87   QtxComboBox.cxx
88   QtxDialog.cxx
89   QtxDockAction.cxx
90   QtxDockWidget.cxx
91   QtxDoubleSpinBox.cxx
92   QtxEvalExpr.cxx
93   QtxFontEdit.cxx
94   QtxGridBox.cxx
95   QtxGroupBox.cxx
96   QtxIntSpinBox.cxx
97   QtxListAction.cxx
98   QtxTreeView.cxx
99   QtxLogoMgr.cxx
100   QtxMainWindow.cxx
101   QtxMenu.cxx
102   QtxMultiAction.cxx
103   QtxMRUAction.cxx
104   QtxPagePrefMgr.cxx
105   QtxPathDialog.cxx
106   QtxPathEdit.cxx
107   QtxPathListEdit.cxx
108   QtxPopupMgr.cxx
109   QtxPreferenceMgr.cxx
110   QtxResourceMgr.cxx
111   QtxRubberBand.cxx
112   QtxSearchTool.cxx
113   QtxShortcutEdit.cxx
114   QtxSplash.cxx
115   QtxToolBar.cxx
116   QtxToolTip.cxx
117   QtxTranslator.cxx
118   QtxValidator.cxx
119   QtxWorkspace.cxx
120   QtxWorkspaceAction.cxx
121   QtxWorkstack.cxx
122   QtxWorkstackAction.cxx
123   QtxWebBrowser.cxx
124 )
125 SET(GUITS_SOURCES
126   resources/Qtx_msg_fr.ts
127 )
128
129 ADD_DEFINITIONS(${QT_DEFINITIONS})
130 ADD_LIBRARY(qtx ${qtx_SOURCES} ${GUI_HEADERS_MOC})
131 TARGET_LINK_LIBRARIES(qtx ${QT_LIBRARIES} ${OPENGL_LIBRARIES})
132 INSTALL(TARGETS qtx DESTINATION ${GUI_salomelib_LIBS})
133
134 SET(COMMON_HEADERS_H
135   Qtx.h
136   QtxAction.h
137   QtxActionGroup.h
138   QtxActionMenuMgr.h
139   QtxActionMgr.h
140   QtxActionSet.h
141   QtxActionToolMgr.h
142   QtxBackgroundTool.h
143   QtxBiColorTool.h
144   QtxColorButton.h
145   QtxColorScale.h
146   QtxComboBox.h
147   QtxDialog.h
148   QtxDockAction.h
149   QtxDockWidget.h
150   QtxDoubleSpinBox.h
151   QtxEvalExpr.h
152   QtxFontEdit.h
153   QtxGridBox.h
154   QtxGroupBox.h
155   QtxIntSpinBox.h
156   QtxListAction.h
157   QtxTreeView.h
158   QtxLogoMgr.h
159   QtxMainWindow.h
160   QtxMap.h
161   QtxMenu.h
162   QtxMultiAction.h
163   QtxMRUAction.h
164   QtxPagePrefMgr.h
165   QtxPathDialog.h
166   QtxPathEdit.h
167   QtxPathListEdit.h
168   QtxPopupMgr.h
169   QtxPreferenceMgr.h
170   QtxResourceMgr.h
171   QtxRubberBand.h
172   QtxSearchTool.h
173   QtxShortcutEdit.h
174   QtxSplash.h
175   QtxToolBar.h
176   QtxToolTip.h
177   QtxTranslator.h
178   QtxValidator.h
179   QtxWorkspace.h
180   QtxWorkspaceAction.h
181   QtxWorkstack.h
182   QtxWorkstackAction.h
183   QtxWebBrowser.h
184 )
185 INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS})
186 QT4_INSTALL_TS_RESOURCES("${GUITS_SOURCES}" "${GUI_salomeres_DATA}")