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