]> SALOME platform Git repositories - modules/gui.git/blob - src/SUIT/CMakeLists.txt
Salome HOME
[bos #35160][EDF](2023-T1) Keyboard shortcuts.
[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_LicenseDlg.h
50   SUIT_MessageBox.h
51   SUIT_Operation.h
52   SUIT_PopupClient.h
53   SUIT_PreferenceMgr.h
54   SUIT_SelectionMgr.h
55   SUIT_Session.h
56   SUIT_ShortcutMgr.h
57   SUIT_Study.h
58   SUIT_TreeModel.h
59   SUIT_ViewManager.h
60   SUIT_ViewModel.h
61   SUIT_ViewWindow.h
62 )
63
64 # header files / no moc processing
65 SET(_other_HEADERS
66   SUIT.h
67   SUIT_CameraProperties.h
68   SUIT_DataObjectIterator.h
69   SUIT_DataObjectKey.h
70   SUIT_DataOwner.h
71   SUIT_ExceptionHandler.h
72   SUIT_FileValidator.h
73   SUIT_OverrideCursor.h
74   SUIT_ResourceMgr.h
75   SUIT_SelectionFilter.h
76   SUIT_Selector.h
77   SUIT_SmartPtr.h
78   SUIT_Tools.h
79   SUIT_TreeSync.h
80 )
81
82 # header files / to install
83 SET(suit_HEADERS ${_moc_HEADERS} ${_other_HEADERS})
84
85 # --- resources ---
86
87 # resource files / to be processed by lrelease
88 SET(_ts_RESOURCES
89   resources/SUIT_msg_en.ts
90   resources/SUIT_msg_fr.ts
91   resources/SUIT_msg_ja.ts
92   resources/SUIT_images.ts
93 )
94
95 # resource files / static
96 SET(_other_RESOURCES
97   resources/icon_visibility_on.png
98   resources/icon_visibility_off.png
99   resources/view_sync.png
100   resources/action_assets.json
101 )
102
103 # --- sources ---
104
105 # sources / moc wrappings
106 QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
107
108 # sources / static
109 SET(_other_SOURCES
110   SUIT_Accel.cxx
111   SUIT_ActionOperation.cxx
112   SUIT_Application.cxx
113   SUIT_AutoRotate.cxx
114   SUIT_CameraProperties.cxx
115   SUIT_DataBrowser.cxx
116   SUIT_DataObject.cxx
117   SUIT_DataObjectIterator.cxx
118   SUIT_DataObjectKey.cxx
119   SUIT_DataOwner.cxx
120   SUIT_Desktop.cxx
121   SUIT_ExceptionHandler.cxx
122   SUIT_FileDlg.cxx
123   SUIT_FileValidator.cxx
124   SUIT_LicenseDlg.cxx
125   SUIT_MessageBox.cxx
126   SUIT_Operation.cxx
127   SUIT_OverrideCursor.cxx
128   SUIT_PopupClient.cxx
129   SUIT_PreferenceMgr.cxx
130   SUIT_ResourceMgr.cxx
131   SUIT_SelectionFilter.cxx
132   SUIT_SelectionMgr.cxx
133   SUIT_Selector.cxx
134   SUIT_Session.cxx
135   SUIT_ShortcutMgr.cxx
136   SUIT_Study.cxx
137   SUIT_Tools.cxx
138   SUIT_TreeModel.cxx
139   SUIT_ViewManager.cxx
140   SUIT_ViewModel.cxx
141   SUIT_ViewWindow.cxx
142 )
143
144 # sources / to compile
145 SET(suit_SOURCES ${_other_SOURCES} ${_moc_SOURCES})
146
147 # --- rules ---
148
149 ADD_LIBRARY(suit ${suit_SOURCES})
150 TARGET_LINK_LIBRARIES(suit ${_link_LIBRARIES})
151 INSTALL(TARGETS suit EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
152
153 INSTALL(FILES ${suit_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
154 QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
155
156 INSTALL(FILES ${_other_RESOURCES} DESTINATION ${SALOME_GUI_INSTALL_RES_DATA})