Salome HOME
404a54941a2727a0bf28149218634f418f853185
[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   QtxFontEdit.h
53   QtxGridBox.h
54   QtxGroupBox.h
55   QtxIntSpinBox.h
56   QtxListAction.h
57   QtxLogoMgr.h
58   QtxMRUAction.h
59   QtxMainWindow.h
60   QtxMenu.h
61   QtxMultiAction.h
62   QtxPagePrefMgr.h
63   QtxPathDialog.h
64   QtxPathEdit.h
65   QtxPathListEdit.h
66   QtxPopupMgr.h
67   QtxRubberBand.h
68   QtxSearchTool.h
69   QtxShortcutEdit.h
70   QtxSplash.h
71   QtxToolBar.h
72   QtxToolTip.h
73   QtxTreeView.h
74   QtxValidator.h
75   QtxWebBrowser.h
76   QtxWorkspace.h
77   QtxWorkspaceAction.h
78   QtxWorkstack.h
79   QtxWorkstackAction.h
80 )
81
82 # obsolete files: not migrated to Qt4
83 # _moc_HEADERS << QtxListBox.h QtxTable.h
84 # TODO: migrate or remove?
85
86 # header files / no moc processing
87 SET(_other_HEADERS
88   Qtx.h
89   QtxEvalExpr.h
90   QtxMap.h
91   QtxPreferenceMgr.h
92   QtxResourceMgr.h
93   QtxTranslator.h
94 )
95
96 # header files / to install
97 SET(qtx_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
98
99 # --- resources ---
100
101 # resource files / to be processed by rcc
102 SET(_rcc_RESOURCES Qtx.qrc)
103
104 # resource files / to be processed by lrelease
105 SET(_ts_RESOURCES resources/Qtx_msg_fr.ts)
106
107 # --- sources ---
108
109 # sources / rcc wrappings
110 QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
111
112 # sources / moc wrappings
113 QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
114
115 # sources / static
116 SET(_other_SOURCES
117   Qtx.cxx
118   QtxAction.cxx
119   QtxActionGroup.cxx
120   QtxActionMenuMgr.cxx
121   QtxActionMgr.cxx
122   QtxActionSet.cxx
123   QtxActionToolMgr.cxx
124   QtxBackgroundTool.cxx
125   QtxBiColorTool.cxx
126   QtxColorButton.cxx
127   QtxColorScale.cxx
128   QtxComboBox.cxx
129   QtxDialog.cxx
130   QtxDockAction.cxx
131   QtxDockWidget.cxx
132   QtxDoubleSpinBox.cxx
133   QtxEvalExpr.cxx
134   QtxFontEdit.cxx
135   QtxGridBox.cxx
136   QtxGroupBox.cxx
137   QtxIntSpinBox.cxx
138   QtxListAction.cxx
139   QtxLogoMgr.cxx
140   QtxMRUAction.cxx
141   QtxMainWindow.cxx
142   QtxMenu.cxx
143   QtxMultiAction.cxx
144   QtxPagePrefMgr.cxx
145   QtxPathDialog.cxx
146   QtxPathEdit.cxx
147   QtxPathListEdit.cxx
148   QtxPopupMgr.cxx
149   QtxPreferenceMgr.cxx
150   QtxResourceMgr.cxx
151   QtxRubberBand.cxx
152   QtxSearchTool.cxx
153   QtxShortcutEdit.cxx
154   QtxSplash.cxx
155   QtxToolBar.cxx
156   QtxToolTip.cxx
157   QtxTranslator.cxx
158   QtxTreeView.cxx
159   QtxValidator.cxx
160   QtxWebBrowser.cxx
161   QtxWorkspace.cxx
162   QtxWorkspaceAction.cxx
163   QtxWorkstack.cxx
164   QtxWorkstackAction.cxx
165 )
166
167 # obsolete files: not migrated to Qt4
168 # _other_SOURCES << QtxListBox.cxx QtxTable.cxx
169 # TODO: migrate or remove?
170
171 # sources / to compile
172 SET(qtx_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_rcc_SOURCES})
173
174 # --- rules ---
175
176 ADD_LIBRARY(qtx ${qtx_SOURCES})
177 TARGET_LINK_LIBRARIES(qtx ${_link_LIBRARIES})
178 INSTALL(TARGETS qtx EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
179
180 INSTALL(FILES ${qtx_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
181 QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")