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