]> SALOME platform Git repositories - modules/gui.git/blob - src/SUIT/CMakeLists.txt
Salome HOME
[bos #40644][CEA](2024-T1) Feature search.
[modules/gui.git] / src / SUIT / CMakeLists.txt
1 # Copyright (C) 2012-2024  CEA, EDF, 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(UseQtExt)
21
22 # --- options ---
23
24 # additional include directories
25 INCLUDE_DIRECTORIES(
26   ${QT_INCLUDES}
27   ${PROJECT_SOURCE_DIR}/src/Qtx
28   ${PROJECT_SOURCE_DIR}/src/ObjBrowser
29 )
30
31 # additional preprocessor / compiler flags
32 ADD_DEFINITIONS(${QT_DEFINITIONS})
33
34 # libraries to link to
35 SET(_link_LIBRARIES ${PLATFORM_LIBS} ${QT_LIBRARIES} qtx ObjBrowser)
36
37 # --- headers ---
38
39 # header files / to be processed by moc
40 SET(_moc_HEADERS
41   SUIT_Accel.h
42   SUIT_ActionOperation.h
43   SUIT_Application.h
44   SUIT_AutoRotate.h
45   SUIT_DataBrowser.h
46   SUIT_DataObject.h
47   SUIT_Desktop.h
48   SUIT_FileDlg.h
49   SUIT_FindActionDialog.h
50   SUIT_LicenseDlg.h
51   SUIT_MessageBox.h
52   SUIT_Operation.h
53   SUIT_PagePrefShortcutTreeItem.h
54   SUIT_PopupClient.h
55   SUIT_PreferenceMgr.h
56   SUIT_SelectionMgr.h
57   SUIT_Session.h
58   SUIT_ShortcutMgr.h
59   SUIT_ShortcutTree.h
60   SUIT_Study.h
61   SUIT_TreeModel.h
62   SUIT_ViewManager.h
63   SUIT_ViewModel.h
64   SUIT_ViewWindow.h
65 )
66
67 # header files / no moc processing
68 SET(_other_HEADERS
69   SUIT.h
70   SUIT_CameraProperties.h
71   SUIT_DataObjectIterator.h
72   SUIT_DataObjectKey.h
73   SUIT_DataOwner.h
74   SUIT_ExceptionHandler.h
75   SUIT_FileValidator.h
76   SUIT_OverrideCursor.h
77   SUIT_ResourceMgr.h
78   SUIT_SelectionFilter.h
79   SUIT_Selector.h
80   SUIT_SmartPtr.h
81   SUIT_Tools.h
82   SUIT_TreeSync.h
83 )
84
85 # header files / to install
86 SET(suit_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
87
88 # --- resources ---
89
90 # resource files / to be processed by lrelease
91 SET(_ts_RESOURCES
92   resources/SUIT_msg_en.ts
93   resources/SUIT_msg_fr.ts
94   resources/SUIT_msg_ja.ts
95   resources/SUIT_images.ts
96 )
97
98 # resource files / static
99 SET(_other_RESOURCES
100   resources/icon_visibility_on.png
101   resources/icon_visibility_off.png
102   resources/view_sync.png
103   resources/action_assets.json
104 )
105
106 # --- sources ---
107
108 # sources / moc wrappings
109 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
110
111 # sources / static
112 SET(_other_SOURCES
113   SUIT_Accel.cxx
114   SUIT_ActionOperation.cxx
115   SUIT_Application.cxx
116   SUIT_AutoRotate.cxx
117   SUIT_CameraProperties.cxx
118   SUIT_DataBrowser.cxx
119   SUIT_DataObject.cxx
120   SUIT_DataObjectIterator.cxx
121   SUIT_DataObjectKey.cxx
122   SUIT_DataOwner.cxx
123   SUIT_Desktop.cxx
124   SUIT_ExceptionHandler.cxx
125   SUIT_FileDlg.cxx
126   SUIT_FileValidator.cxx
127   SUIT_FindActionDialog.cxx
128   SUIT_LicenseDlg.cxx
129   SUIT_MessageBox.cxx
130   SUIT_Operation.cxx
131   SUIT_OverrideCursor.cxx
132   SUIT_PagePrefShortcutTreeItem.cxx
133   SUIT_PopupClient.cxx
134   SUIT_PreferenceMgr.cxx
135   SUIT_ResourceMgr.cxx
136   SUIT_SelectionFilter.cxx
137   SUIT_SelectionMgr.cxx
138   SUIT_Selector.cxx
139   SUIT_Session.cxx
140   SUIT_ShortcutMgr.cxx
141   SUIT_ShortcutTree.cxx
142   SUIT_Study.cxx
143   SUIT_Tools.cxx
144   SUIT_TreeModel.cxx
145   SUIT_ViewManager.cxx
146   SUIT_ViewModel.cxx
147   SUIT_ViewWindow.cxx
148 )
149
150 # sources / to compile
151 SET(suit_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
152
153 # --- rules ---
154
155 ADD_LIBRARY(suit ${suit_SOURCES})
156 TARGET_LINK_LIBRARIES(suit ${_link_LIBRARIES})
157 INSTALL(TARGETS suit EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
158
159 INSTALL(FILES ${suit_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
160 QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
161
162 INSTALL(FILES ${_other_RESOURCES} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})